i am having a file contants as below
my requirement is
for file in `awk -F "," '{print $8,$9}'` <temp.txt
echo "$file"
echo "$file">test.txt
a=`awk -F "," '{print $1}' `<test.txt
b=`awk -F "," '{print $2}' `<test.txt
but script reads
, i want both the vales for further execution
gary_w
April 27, 2012, 9:26am
2
You'll get a better answer if you mention what system, what shell, sample input data and expected output. I suspect there is an easier way to get what you need but more detailed info is needed.
panyam
April 27, 2012, 9:51am
3
awk -F "," '{print $8,$9}
"," is not the delimiter in you sample input, instead it's space.
panyam
oh! yes
I have modified it now only.
Trying to get desired output.
methyl
April 27, 2012, 10:06am
5
@sagar_1986
Please post what Operating System and version you have and what Shell you are running.
Please post sample output. Because your code does not work we cannot guess what it was intended to do.
That is not a requirement, but an attempted solution.