Re: Using ed to remove Carriage Returns from a file
From: Chris (ctaliercio_at_yahoo.com)
Date: 08/29/05
- Next message: John Kelly: "Re: rm delete hidden files"
- Previous message: Loki Harfagr: "Re: Can Anyone have Solution?????????????"
- In reply to: Chapman Flack: "Re: Using ed to remove Carriage Returns from a file"
- Next in thread: John Savage: "Re: Using ed to remove Carriage Returns from a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Aug 2005 10:40:03 -0700
Chap,
You are correct. I want to strip - the CR but leave the LF intact.
As you suggested, I am dealing with a file that is placed on my UNIX
server via a directory that is mounted under Windows.
So - when you save the file from Windows you end up with the CR/LF pair
instead of the standard LF that UNIX uses.
I'd still like to know if there is a way to accomplich this from within
the ed command itself as opposed to piping input to the ed command via
a print statement.
Thanks,
Chris
- Next message: John Kelly: "Re: rm delete hidden files"
- Previous message: Loki Harfagr: "Re: Can Anyone have Solution?????????????"
- In reply to: Chapman Flack: "Re: Using ed to remove Carriage Returns from a file"
- Next in thread: John Savage: "Re: Using ed to remove Carriage Returns from a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|