tr problem
Patrick O'Callaghan
pocallaghan at gmail.com
Fri Jun 13 23:53:44 UTC 2008
On Fri, 2008-06-13 at 23:52 +0200, Michael Schwendt wrote:
> On Fri, 13 Jun 2008 15:41:31 -0500, Aaron Konstam wrote:
>
> > On Fri, 2008-06-13 at 16:42 +0200, Michael Schwendt wrote:
> > > On Fri, 13 Jun 2008 09:31:19 -0500, Aaron Konstam wrote:
> > >
> > > > Except as stated by the OP your solution of dos2unix might not work,
> > > DOS
> > > > uses as eol characters cr followed by lf. So you would not want in
> > > that
> > > > case to replace a cr by a lf. You would want to just remove the cr.
> > > > In vi this is done by the command:
> > > > :.,$s/^V^M//
> > >
> > > $ rpm -qf /usr/bin/mac2unix
> > > dos2unix-3.1-31.fc9.i386
> > >
> > > ;o)
> > How is this a response to what I said?
>
> mac2unix is just dos2unix -c Mac and can be used to replace CR line
> delimiters with LF, which is what Gene, the OP, wants. On the contrary,
> where the line delimiters are CR+LF (DOS, Windows), dos2unix can be used.
Or 'tr -d \015 < input > output'
I got so used to typing that that I couldn't be bothered even making an
alias for it.
poc
More information about the fedora-list
mailing list