Breaking it down
- ‘sed’ – the stream editor
$ cat file | sed 's/kg/kilograms/g' > new-file
- Input
at least 15 kg of marmite favourite background colour
- Output
at least 15 kilograms of marmite favourite backilogramsround colour
$ cat file | sed 's/kg/kilograms/g' > new-file
at least 15 kg of marmite favourite background colour
at least 15 kilograms of marmite favourite backilogramsround colour