I have a file a.txt. I would like to replace all instances of "1.6" with "1.5" in that file, overwriting the original file.
Using the command line :
This command replace in the file, the orginal file is saved as /path/to/file.bak
You can use sed for that:
also if you are inside an editor like vim, you can do that :
In emacs :