Hands-on task
This task is step 20 of the course “Linux: everyday tasks”
Delete files from a list
/root/trash.txt contains a list of file paths (one per line, the whole line is the path). Delete all the listed files with a single command, without touching the others.
What you'll practise:
- xargs
- rm
- stdin to arguments
- input redirection
- delimiters