Hands-on task
This task is step 15 of the course “find and xargs: search and bulk operations”
xargs -0: names with spaces
/root/docs and its subdirectories hold dozens of .txt files, many with spaces in their names (my file.txt, sub dir/part 1.txt). Append the line DONE to the end of every .txt file (without wiping what's already in it) using a space-safe find … | xargs … pipeline. Don't touch the .md files.
What you'll practise:
- xargs
- -0
- find -print0
- null delimiter
- spaces in names