I used sep to try this, basically I have a text file that contains a reasonable amount of the same line, for example.
4444 username "some information" "someotherinformation" "even more information"
I need to replace the spaces inside the quotes with underscores so that they look like this:
4444 username "some_information" "someotherinformation" "even_more_information"
currently I have been able to highlight the cited information
sed 's/"\([^"]*\)"/_/g' myfile.txt
Advice on how to proceed?
source
share