Search Results

Search: Posts Made By: PikK45
1,406
Posted By PikK45
file=file1.csv if test -s "$file" ...
file=file1.csv
if test -s "$file"
then
while read line
do
a=$(echo $line | awk -F"," '{print $1}' )
...
1,406
Posted By PikK45
Note that values for a and b will be the same ...
Note that values for a and b will be the same
a=`cat $line | awk '{print $1}' `
b=`cat $line | awk '{print $2}' `
the above code will get you the values as a=34,BANDHI and b=<nothing>

awk's...
1,406
Posted By PikK45
what is your loop doing?? Can you post the...
what is your loop doing??

Can you post the snippet here??
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy