vi : Edit file without opening it
In this post I am sharing the trick to edit file without opening it. To achieve this task we will use vi editor. vi is very well known,popular,ultimate and awesome editor and by default available in all Unix/Linux operating system. Syntax: vi -c ‘COMMAND|wq’ /path/of/file Example: We will replace a keyword with new keyword in…