I would like to concatenate multiple files following a specific order from an other file.
I have multiple files called freq_<something> that I want to concatenate.
The "something" are listed in another file called "list".
So here is my list:
$ cat list
003137F
002980F
002993F
I want to do:
cat freq_003137F freq_002980F freq_002993F > freq_all
But my list contains hundreds of values so I can't really do that!
What is a way to automate it? I thought I could append a file with a while read line but it fails...
Thanks!
M
while read-type loop should be fine here. Care to add your code so we might take a look?