I am noob with shell script and I am trying to pass multiple arguments to an command. I have a urls.txt file that looks as below
name1,http://url1
name2,http://url2
name3,http://url3
name4,http://url4
with the below command I am able to get output after splitting by comma
cat urls.txt | cut -d ',' -f1
cat urls.txt | cut -d ',' -f2
The first one gives the name1, name2, etc and second one gives http://url1 http://url2. what I wanted to do was pipe both of them as a variable to a third command where I can use both of them.
Any ideas or suggestions are highly appreciated?