I have a file with several lines.
This is an example:
021005 3683834834 odilon 08/10/07 07/09/17 07/09/17 index:0c8659e9-00000004-4252666f-4252666e-06a00000-ac100007
021005 2190666067 odilon 08/10/07 07/09/17 07/09/17 index:0c8659e9-00000004-4252666f-4252666e-06a00000-ac100007
I want to use a command with two arguments from the same line:
nsrmm -S <2nd Field> -w <4th field>
If I try:
for i in `cat /tmp/list.txt`
do
echo $i
done
The shell pass a cointain with spaces to the variable.
I decided to use IFS=<Control-V><Control-J>
But it takes two lines per variable.
How can I prevent taking more than a line per variable?
Thanks!
This is an example:
021005 3683834834 odilon 08/10/07 07/09/17 07/09/17 index:0c8659e9-00000004-4252666f-4252666e-06a00000-ac100007
021005 2190666067 odilon 08/10/07 07/09/17 07/09/17 index:0c8659e9-00000004-4252666f-4252666e-06a00000-ac100007
I want to use a command with two arguments from the same line:
nsrmm -S <2nd Field> -w <4th field>
If I try:
for i in `cat /tmp/list.txt`
do
echo $i
done
The shell pass a cointain with spaces to the variable.
I decided to use IFS=<Control-V><Control-J>
But it takes two lines per variable.
How can I prevent taking more than a line per variable?
Thanks!