Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Linux command line search and replace string


> grep -rl "old string" . | xargs sed -i 's/old string/new string/g'

Comment

how to find and replace on linux

find . -type f -name "*.md" -print0 | xargs -0 sed -i 's/foo/bar/g'
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu visual studio path 
Shell :: updating all python modules 
Shell :: ffprobe get duration 
Shell :: restart remote computer 
Shell :: how to get list of files in a folder in batch script 
Shell :: install dvipng ubuntu 
Shell :: clear untracked files git 
Shell :: brave browser ubuntu 20.10 command line download 
Shell :: nohup example 
Shell :: functions in linux 
Shell :: how to make history | grep in windows 
Shell :: best shell linux 
Shell :: solana install 
Shell :: head of zipped file 
Shell :: az aks get-credentials 
Shell :: split bash string 
Shell :: docker prune 
Shell :: clear teams cache powershell 
Shell :: wsl2 file 
Shell :: run docker as non root 
Shell :: git delete remote name 
Shell :: pip3 to pip 
Shell :: how to push newly created branch in git bash 
Shell :: bash store contents of file in array 
Shell :: conda install regex 
Shell :: change dns resolver linux 
Shell :: readme folder structure 
Shell :: Module enzyme-to-json/serializer in the snapshotSerializers option was not found. <rootDir is 
Shell :: github no changes added to commit 
Shell :: stremio: Depends: libfdk-aac1 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =