Skip to content

Instantly share code, notes, and snippets.

@mttjohnson
Created December 19, 2018 20:47
Show Gist options
  • Select an option

  • Save mttjohnson/dd49756c22f92cceea542472a6598db8 to your computer and use it in GitHub Desktop.

Select an option

Save mttjohnson/dd49756c22f92cceea542472a6598db8 to your computer and use it in GitHub Desktop.
Reading partial segments/lines of a file using sed
# extract lines 13100-13200 of file and write to a separate file
sed -n 13100,13200p database.sql > small_segment.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment