[lug] Stripping whitespace in a shell script

Tom Tromey tromey at redhat.com
Wed Feb 20 11:00:35 MST 2002


>>>>> "Scott" == Scott A Herod <herod at interact-tv.com> writes:

Scott> Now how about converting "yow.lines" so that individual lines
Scott> are terminated with a return rather than a null character so that
Scott> I can stick the file into bugzilla's quips.

With GNU tr, this works:

    tr '\000' '\012' < yow.lines

But will that really do what you want?  I don't know the quip file
format, but I do know that yow.lines has many entries which are more
than a single line.  Seems like there is a quoting issue in there to
me.

Tom



More information about the LUG mailing list