I need to change
- FROM
Car
Bus
- TO
Helicopter
Airplane
This two commands are sufficient.
awk -i inplace '{sub(/Car/,"Helicopter")}1' file
awk -i inplace '{sub(/Bus/,"Airplane")}1' file
And this command is sufficient too.
sed -e 's/Car/Helicopter/' \
-e 's/Bus/Airplane/' \
-i file
In "awk" is it possible to combine two operations in one command like "sed".
Thanks in advance!