28th April 2015
▶ Bash Text manipulation: sed is better then a grepped cat !

When you like to learn about regex then sed is a good starting point. Here is an example of some text manipulation. See below snippets of a txt file which needs these adjustments cat -n <file>.pp | grep notify 33 # notify {“WARNING: numberoforasids: $numberoforasids” : } 46 notify => Service[‘postfix’], 71 notify => Service[‘postfix’],