neversaint has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is to concatenate a subset of files from above directory:~/MyDir |__ file1.txt |__ file2.txt |__ file3.txt |__ ... |__ file30.txt
into a single file called 'selected.txt'. Just like I would do it manually with bash`s cat command:@sel_files = ( "file2.txt", "file4.txt", "file15.txt");
How can I do it with Perl? The reason why I need to do it with Perl because in reality the number of files to be concatenated is a lot and varying. I need to automate the process.$ cat file2.txt file4.txt file15.txt > selected.txt
|
|---|