Hi,
I would like to do the same thing to many files and to put result into files that that has the same name as input files but with different suffixes. For example if I have datafiles like
boxHUN.dat
boxDNK.dat
boxCHY.dat
the result should be writen into
boxHUN.txt
boxDNK.txt
boxCHY.txt
I started like:
ls box*.dat | xargs awk 'BEGIN {FS=","}{print $2, $3/2}' > xargs".txt"
Of course, this does not work (I thought it would). How to redirect data properly?
thanks
oliver
I would like to do the same thing to many files and to put result into files that that has the same name as input files but with different suffixes. For example if I have datafiles like
boxHUN.dat
boxDNK.dat
boxCHY.dat
the result should be writen into
boxHUN.txt
boxDNK.txt
boxCHY.txt
I started like:
ls box*.dat | xargs awk 'BEGIN {FS=","}{print $2, $3/2}' > xargs".txt"
Of course, this does not work (I thought it would). How to redirect data properly?
thanks
oliver