Re: sed, awk, or something...help meeeeeeeeeee

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

 



On Mon, 2009-09-28 at 19:48 +0200, Joerg Bergmann wrote:
> Probably it's not what you want, but I would prefer writing a
> 
> 50 lines standard C program for that task...

Gah!  'Probably' isn't the right word.

More reading and now I've got something along the lines of what I want
to do, but it's obviously not going to work:

sed '/BB/r file2' file1

This will dump the contents of file2 after each "BB" line in file1.
That's not what I'm after.

Is there a way in sed to read in one line at a time from file2 to
replace "BB" from file1 (as I explained earlier)?

Regards,

Ranbir

-- 
Kanwar Ranbir Sandhu
Linux 2.6.27.30-170.2.82.fc10.x86_64 x86_64 GNU/Linux 
14:00:55 up 9 days, 3:36, 3 users, load average: 1.28, 1.19, 0.95 


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