there are lot of files where in mostly all the file contains 2columns
Al,1
Ail,13
Al,3
Al,1
Al,3
Al,2
Al,3
Al,1
Al,1
Al,1
[/CODE]
My requirement is i wanted only the second column of every file as a column ony in the base file... I used paste command... but it is not helping as I'm using while condition.
while read dline
do
while read opline
do
grep $dline Combo_31Jan.csv|grep -i "$opline" |awk -F, '{print $1","$7}'>>combo_operncount.$dline.$opline
done < operator.txt
done < date.txt
while read dline
do
>blank.$dline
while read opline
do
#paste blank.$dline combo_operncount.$dline.$opline >> FC7DFILE.$opline
#mv FC7DFILE.$opline blank.$dline
done < operator.txt
done < date.txt
[/CODE]
operator.txt and date.txt contains
operator.txt
AEL
AL
TMO
VOE
date.txt
2013-01-28
2013-01-29
2013-01-30
2013-01-31
[/CODE]