Re: tr problem

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

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux