Created
February 7, 2013 11:23
-
-
Save psycharo-zz/4730397 to your computer and use it in GitHub Desktop.
example of using xargs to manage stdout redirections
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
ls 2012-12-{}.log | xargs -I file sh -c 'head -n 1000000 file > file.1m' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment