Created
July 18, 2015 22:58
-
-
Save dvcama/05309640e4f9e4a8b1ab to your computer and use it in GitHub Desktop.
First 1000 lines of every file in a folder
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
#!/bin/bash | |
for file in *; do head -n 10000 "$file" > ../redux/"$file"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment