in reply to Re: is this correct
in thread is this correct

In case like this (a while loop around one or more files) the perl -ne is usually a good candidate...

Something like :
perl -ne 's/\t/ /g;print' file > file.tmp; mv file.tmp file;

Replies are listed 'Best First'.
Re: Re: Re: is this correct
by repson (Chaplain) on Feb 03, 2001 at 08:20 UTC
    To abstract it a little more

    perl -i.back -pe 's/\t/    /g' file

    The -i means copy original file to file.back and put the output of program in file. The -p is like -n but does while(<>){YOUR_CODE; print;} instead.