I'm new to scripting and bash altogether, so don't bash me on such a nub question!
I have a file say serverlist.lst, inside this file:
If colon is the delimiter, how do I turn each one into $1, $2, $3 and so on
What I'm trying to achieve here is to run an rsync script, that would read $1 as the servername, then $2 to $blah as the folders to rsync.
So essentially it'll look like rsync $RSYNC_OPTS root@$1:$2 $backupdir, then same line with $3 and so on
Once this line completes it'll run the same thing but for the new line.
Any help would be appreciated. Thanks!