Skip to content

Instantly share code, notes, and snippets.

@masak
Created April 20, 2013 13:22
Show Gist options
  • Save masak/5425967 to your computer and use it in GitHub Desktop.
Save masak/5425967 to your computer and use it in GitHub Desktop.
Removing the first line of a file
$ cat example-file
one
two
three
four
$ perl -i.bak -nwe 'print unless 1..1' example-file
$ cat example-file
two
three
four
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment