Skip to content

Instantly share code, notes, and snippets.

@eschie
Created December 12, 2013 04:15
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 eschie/7923108 to your computer and use it in GitHub Desktop.
Save eschie/7923108 to your computer and use it in GitHub Desktop.
tail -n +2 test.css > test.css
# remove up to the second line (remove first line) of a file and output to new file
for file in *.css; do tail -n 7 "$file" > "${file%.css}".new.css; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment