Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

How can I capitalise a word proceeding a specific word

$
0
0

Lets say I want to capitalise the first word following the word jumped. Example below

Original text:

the cow jumped over the moon

Amended text

the cow jumped OVER the moon

I have tried awk and sed but cant seem to get it right.

Thanks in advance


Viewing all articles
Browse latest Browse all 102

Trending Articles



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