Last active
November 11, 2019 05:43
-
-
Save sipadan2003/ac05c7b4aa00df647c48c97f3e2226d8 to your computer and use it in GitHub Desktop.
ShellScript samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `grep -E "^[0-9]+$" d.txt` | |
do | |
echo "Processing for $i" | |
rm -f $i.txt | |
for j in `grep -E "^[^:]+:$i" d.txt` | |
do | |
echo $j >> $i.txt | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment