Hands-on task
Process files with spaces in their names
The directory /root/data contains text files, and some have spaces in their names (my file.txt, two words.txt). Append the line PROCESSED to the end of every file with the .txt extension — including those with spaces. Don't touch keep.md. Do it with a single find … | xargs … pipeline that is resistant to spaces.
- find
- xargs
- -print0
- names with spaces
- sed