Quantcast
Channel: sed/awk/python replace all spaces between characters after string match - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

Answer by msp9011 for sed/awk/python replace all spaces between characters after string match

$
0
0

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


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>