Created
February 17, 2012 08:22
-
-
Save troyscott/1851799 to your computer and use it in GitHub Desktop.
Extract lines from file using sed script
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
#!/usr/bin/env bash | |
# h,f represent repeating content that could be | |
# required in multiple files. | |
h="1,15p" | |
f="122,125p" | |
sed -n "$h;44,56p;$f" index.html > last_hour_m1-page.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment