Fli
05-31-2015, 09:48 AM
How to remove/trim an string/phrasse out of Linux commang output ?
Here is an example i found so far:
cat filename | tr -d "some phrasse to delete/exclude from output"
this worked better:
cat filename | sed -e "s/phrasse to find/phrasse to replace, can be blank/g"
cat filename | sed -e "s/phrasse to find//g"
cat filename | sed -e "s/<description>URL: http:\/\/www.//g"
Here is an example i found so far:
cat filename | tr -d "some phrasse to delete/exclude from output"
this worked better:
cat filename | sed -e "s/phrasse to find/phrasse to replace, can be blank/g"
cat filename | sed -e "s/phrasse to find//g"
cat filename | sed -e "s/<description>URL: http:\/\/www.//g"