Originally Posted by tebucky
I have a fairly large file where each line looks like this:
/^.*@(.+\.)* test.us $/ test.com
What I want to do is remove all the white space from this portion:
/^.*@(.+\.)* test.us $/
and leave space between the / and test.com
Can anyone help? My shell scripting/sed skills are pretty weak.
If it's a large file then sed or awk would be better choices than shell script; shell script would be relatively slow.
As konsolebox asked, can we have some actual texts? "/^.*@(.+\.)* test.us $/
" looks as if you are defining the lines using a regular expression which, all due respect, may not be right if your sed skills are weak like you say -- plus it's better for us to test solutions on data than on meta data.