Hands-on task
This task is step 21 of the course “Linux: everyday tasks”
Create files from a list of names via xargs -I
The file /root/names.txt contains a list of service names, one per line: alpha, bravo, charlie. For each one, create an empty config /root/out/<name>.conf (the /root/out directory already exists). Use xargs with name substitution into a command template.
What you'll practise:
- xargs
- -I
- argument substitution
- reading from a file