Re: SED help

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

 



Scott Ruckh wrote:
> I would like to do the following SED replacement, but I am not having much
> luck and thought I would ask for help.
> 
> TEXT1="some-text a.b.c.d a.b.c.d a.b.c.d a.b.c.d"
> TEXT2="some-text 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4"
> 
> sed -i "s/$TEXT1/$TEXT2/g" $INFILE
> 
> ;a.b.c.d are unknown IP Addresses.

I believe, given what you say above, that you'd get
some-text 1111 1111 1111 1111

	mark

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux