4
I'm trying to use xargs to manipulate a set of files.
A file called filelist.txt contain the file names
john
paul
george
ringo
steve
I can create all these files with this command:
cat filelist.txt | xargs touch
How would I add the same text 'hello' to every file in the list? Also, how would I add text based on the file name.. i.e. 'first name: steve' to the steve file?
While it is a working solution, this doesn't answer the question which was specifically about how to use xargs. – beaudet – 2019-03-22T13:53:03.337