I want to search a text file for any line that has "*.info" or "*.err", If i found it I insert the string ";none" before the 'tab'.
I sucessfully do either "*.info" or "*.err" but dont know how to do both on the same line. Please help. How do I put a 'or' statement in the below line to also change the *.err line as well
sed -e '/\*.info/b' -e'/\*info/s/ /;none /' file.txt > newfile.txt
Please help
Thanks
I sucessfully do either "*.info" or "*.err" but dont know how to do both on the same line. Please help. How do I put a 'or' statement in the below line to also change the *.err line as well
sed -e '/\*.info/b' -e'/\*info/s/ /;none /' file.txt > newfile.txt
Please help
Thanks