Thanks for the reply. This works absolutely fine.But i have a question.
The input file sometime contains 3 fields,
Ex: TEST_3,20100221,20100220
Can this code handle 3 fields?
Also if the fields are separated by "space" then this is how the code would look like:
for i in `cat input.txt`
do
file_name=`echo $i | cut -d"" -f1`
params=`echo $i | cut -d"" -f2- | sed 's/ / /g'`
./yc_compute.ksh $file_name $params
done
Thank You!!
---------- Post updated at 01:17 PM ---------- Previous update was at 12:57 PM ----------
@jlliagre: This one works fine too. Thanks for the reply!!