↧
Answer by msp9011 for sed/awk/python replace all spaces between characters...
Using sed: sed -e 's/ //3g' file exmpl 0 thisarethespacestodelete exmpl 1 morespacestodel exmpl 2 orsmthcompletelydifferent exmpl 12 yetanotherline will do replacement from the 3rd match
View Articlesed/awk/python replace all spaces between characters after string match
I want to delete all spaces between characters after an initial match. An example is exmpl 0 t h i s a r e t he spaces to d e l e t e exmpl 1 m o r e spaces to d e l exmpl 2 o r s m t h completely d i...
View Article