Hello,
I do have several files in one folder each file contains measurement data.
for each file I would like to replace the character "," by "." ?
How can I do this and how can I do this for each file at once?
E.G. data_1.dat, data_x.dat (original version)
data_1out.dat, data_x_out.dat (manipulated version)!
cd /tmp/xxx for infile in data_?.dat; do prefix=`basename $infile .dat` outfile=${prefix}_out.dat tr "," "." < $infile > $outfile done
doesn't work
it cannot handle theses infile outfile environment variables?
either cant read files for infile or there are ambiguous target names for outfile?
Your sample is not quite consistent - adding "out" once but "_out" the other time. If you just want the output files distinguished from the input files, try