Skip to content

Instantly share code, notes, and snippets.

@bgshacklett
Last active September 1, 2016 03:35
Show Gist options
  • Save bgshacklett/4fd3fc1fb6e777dbfad853614ee5b735 to your computer and use it in GitHub Desktop.
Save bgshacklett/4fd3fc1fb6e777dbfad853614ee5b735 to your computer and use it in GitHub Desktop.
Useful Bash OneLiners
# From http://stackoverflow.com/questions/191364/quick-unix-command-to-display-specific-lines-in-the-middle-of-a-file
# Print lines 20 to 40 of a text file:
sed -n '20,40p;41q' file_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment