how to find and replace a string in a file using shell script
# replaces ALL(g i.e. global) ouccurences of "original_string" with "new_string",
# in the file file_name.ext_name
sed -i 's/original_string/new_string/g' file_name.ext_name
Also in C++:
- linux advanced chead sheet
- mv linux command
- webmin depends on unzip; however: Package unzip is not installed.
- powershell change directory with space
- cmd kill process by pid
- mysql execute command from command line
- lsb_release: command not found
- create a new file in git bash
- sudo apt-get install docker-ce docker-ce-cli containerd.io command not working
- turn off selinux centos
- pyinstaller geeksforgeeks
- check gcc version
- install heroku cli on linux
- boot pendrive cmd
- install wine ubuntu
- how to secure letsencrypt on ubuntu 20.04 with nginx
- raspberry pi ubuntu server raspi-config
- how to stop psql in linux
- github extension for visual studio 2019 vs git scm
- where is fish shell installed ubuntu
- install brave browser on linux
- protoc-gen-grpc
- zsh split string character by character
- git check first commit