I have a variable which stores a multiple values with a space between each file.
Now I need to seperate the each file and move the file to different path.
"echo concatinate_files" show the below value:
"/home/usr1/car_COM_20100409.txt /home/usr1/car_MOM_20100409.txt /home/usr1/car_REN_20100409.txt /home/usr1/car_SOM_20100409.txt"
If you see the above value it has 4 different files. Using the below command I am seperating each file like ..
export ind_file=`echo $concatinate_files |cut -f1 -d ' ' `--this gives me each file one by one Ist value I will get it as /home/usr1/car_COM_20100409.txt".
now my problem is how to seperate the only file name from the $ind_file.
Also I need a for loop to loop through the process based on number of files in $concatinate_files.