Created
July 26, 2015 21:18
-
-
Save andreasvirkus/36b63aa2fde3b0f982b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Will print the 3rd line of all script files in the given folder (except 'myscripts') | |
for file in ~/scripts/*[^~"myscripts"] | |
do | |
tail -n+3 $file | head -n1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment