Demonstration of reading a delimited file and calling a perl/shell script in Linux
Option #1 - Clone the repo/checkout the code
Option #2 - Download the files file_reader.sh, perl_script.pl, server_path.txt
- server_path.txt - contains the delimited dummy server IPs and some fake paths
- perl_script.pl - is the sample perl that takes and does the actual processing with the passed in serverIP and the path
Note: in this example, I'm just printing the received serverIP and the path - file_reader.sh - is the main file to RUN, that takes in server_path.txt as the argument, reads the content and invokes perl_script.pl for each entry
sh file_reader.sh server_path.txt