Re: Text Manipulation/Replacement

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

 



On Mon, 2008-09-22 at 14:57 -0700, Ubence Quevedo wrote:
> Hello All,
> 
> I've used pdftotext to convert a pdf document to text and then used a combination of grep and awk to single out data and replace formatting that I didn't need.
> 
> The output data eventually looks like this:
> 12,123456789
> ,0987654321
> 
> But I want it to look like this:
> 12,123456789,0987654321
> 
> I've tried many different things with awk, but I can't get it replace \r, with just a ,

For one thing, end-of-line in standard Unix text files is not \r
(Carriage Return), it's \n (Newline).

poc

-- 
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