Hands-on task
This task is step 14 of the course “find and xargs: search and bulk operations”
find -print0 | xargs -0
Count the total number of lines across all *.txt files inside /root/tree (one of them has a space in its name!) and write the number to /root/total.txt. Names with spaces must be handled correctly.
What you'll practise:
- find
- xargs
- null separator
- wc
- handling names with spaces