dimanche 1 mars 2015

pass all files in directory as one argument to perl script


linux beginner here


I have a directory with 50 files in it and I want to simultaneously pass them all to a perl script with just a space between names , as in...


./perl_script.pl file1 file2 file3 .. file50


The files all have non-numerical names.


I understand how to pass all files to perl script one at a time in loop but I am struggling with passing all the files at once. Any help would be greatly appreciated.



Aucun commentaire:

Enregistrer un commentaire