sed, awk, or something...help meeeeeeeeeee
Kanwar Ranbir Sandhu
m3freak at thesandhufamily.ca
Mon Sep 28 18:57:33 UTC 2009
On Mon, 2009-09-28 at 19:33 +0100, Sharpe, Sam J wrote:
> Yes, but it involves reading the man page for sed - I'm not totally
> sure you are capable of doing that.
>
> I suggest looking at the output of "man sed", finding the section
> about the command "r" and then reading the next few lines.
Oh my word. I can't believe I missed that. So, I've solved my little
problem with this:
sed '/BB/R file2' file1
Sweet!
Thanks to everyone who cared enough to reply. I appreciate your time.
Regards,
Ranbir
--
Kanwar Ranbir Sandhu
Linux 2.6.27.30-170.2.82.fc10.x86_64 x86_64 GNU/Linux
14:54:24 up 9 days, 4:29, 3 users, load average: 1.06, 1.15, 1.11
More information about the fedora-list
mailing list