![]() | 1 | initial version |
Easiest way is to use sed
:
sed -i 's/ubuntu/basic/g' filename
This command will replace all "ubuntu" strings with "basic". If you want to replace only lines containg only the word "ubuntu", use
sed -i 's/^ubuntu$/basic/g' filename
(^
and $
characters represents begin and end of line).