You can directly process all command line args: for file in do do something on file -f 'file' & cat 'file' done. #!/bin/bash # sync all domains to backup server at midnight domains= " " me= " $ source /usr /local /nixcraft /mgmt /ssh /. for file in / path / to / file1.txt / path / to / file2.txt / path / to / file3.txt do do something on file cat 'file' done.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |