I have a big text file (URL.txt) and I wish to perform the following using a single sed command:
Find and replace text \'google\' with \'facebook\'
You can use sed addresses:
sed '19,33s/google/facebook/g' file
This will run the substitution on lines between and including 19 and 33.
The form of a sed command is as follows:
[address[,address]]function[arguments]
Where 19,33 is the addreses, substitute is function and global is the argument
19,33
s
g