Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created January 10, 2024 23:17
Show Gist options
  • Save lamarmarshall/4ff85b3360f190d980dc44857130a496 to your computer and use it in GitHub Desktop.
Save lamarmarshall/4ff85b3360f190d980dc44857130a496 to your computer and use it in GitHub Desktop.
bash, awk, display between line numbers
head -20 first.sh | tail -5
or
awk 'NR>=9 && NR <=14 {print}' first.sh
or
sed -n '8,13p' first.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment