Can any one explain me this script
sed -n -e "s/\(string\)/\1\\
/gp" filename | sed -n -e "s/.*\(string\).*/\1/p"
Here string is a pattern to search for in the file
and filename is the name of the file.
Can any one explain me this script
sed -n -e "s/\(string\)/\1\\
/gp" filename | sed -n -e "s/.*\(string\).*/\1/p"
Here string is a pattern to search for in the file
and filename is the name of the file.