Re: sed - trouble matching end of line

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

 



On 07:59 31 Oct 2003, Kunkel, Mark <mckunkel@xxxxxxxxxxx> wrote:
| It turns out that you are right on. The trouble is the file has carriage
| return,
| line feed termination (ie. DOS mode). vi doesn't show the ^M (at least not
| with the
| settings that I am using). We were able to take care of the problem, by
| using tr to strip
| out the carriage returns.

You could also do it in sed by including the ^M in the sed char range.
Or ripping it out anyway with s/^M$//.
Would save the tr step.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

GET ON YOUR BIKES AND RIDE!!  - Queen


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux