Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hevertonfreitas/5d3ec6f841e6ce74cf2074af7b1708b9 to your computer and use it in GitHub Desktop.
Save hevertonfreitas/5d3ec6f841e6ce74cf2074af7b1708b9 to your computer and use it in GitHub Desktop.
Recortar arquivo entre strings
grep -n -m 1 SEARCH_TERM FILE_PATH | sed 's/\([0-9]*\).*/\1/'
sed -n 16224,16482p filename > newfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment