Re: Text Manipulation/Replacement

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

 



On 22Sep2008 16:34, Rick Stevens <ricks@xxxxxxxx> wrote:
> Uh, how about:
> 	cat file.txt | sed '$!N;s/\n//' >newfile.txt

For something that simple, how about:

  tr -d '\012' < file.txt >newfile.txt; echo >>newfile.txt

But I suspect he wants something more complicated (as yet unspecified).
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

The type syntax for C is essentially unparsable. - Rob Pike

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux