Skip to content

Instantly share code, notes, and snippets.

@andreasvirkus
Created July 26, 2015 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreasvirkus/36b63aa2fde3b0f982b0 to your computer and use it in GitHub Desktop.
Save andreasvirkus/36b63aa2fde3b0f982b0 to your computer and use it in GitHub Desktop.
#!/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