Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find . -name "text*.txt" -type f -print0 | xargs -0 -I{} sh -c 'f="{}"; head -100 "$f" > "${f%.txt}_new.txt"'
- for f in *.txt
- do
- head -n100 "$f" > "${f%.txt}_new.txt"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement