Created
January 10, 2024 23:17
-
-
Save lamarmarshall/4ff85b3360f190d980dc44857130a496 to your computer and use it in GitHub Desktop.
bash, awk, display between line numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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