Skip to content

Instantly share code, notes, and snippets.

@btedev
Created August 20, 2010 20:57
Show Gist options
  • Save btedev/541173 to your computer and use it in GitHub Desktop.
Save btedev/541173 to your computer and use it in GitHub Desktop.
Copy n lines using sed
#start,end (note: not zero indexed)
sed -n "1,100p" org_file > new_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment