[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: strip ^M from list of files in for loop



On 30 Jul 2000 17:55 Bret Hughes wrote:
>I have a script that reads file names (each on a different
>line) from a file, does some work and writes the record read
>
>in from the file and appends ": timestamp" to it.
>
>Later when I am trying to process the file (it is still
>going) with variable=$(tail -1 logfile) the embedded ^M is
>kicking my ass:
[snip]

Try "echo -n $variable"

Tony
-- 
Anthony E. Greene <agreene pobox com> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Linux. The choice of a GNU Generation. <http://www.linux.org/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]