Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux replace string in files recursively

find . -type f -name "*.txt" -exec sed -i'' -e 's/foo/bar/g' {} +
Comment

recursively replace : to _ in file names linux

find -name "*foo*.filetype" -exec rename 's/foo/bar/' {} ";"
Comment

linux replace string in files recursively

find /home/www ( -type d -name .git -prune ) -o -type f -print0 | xargs -0 sed -i 's/subdomainA.example.com/subdomainB.example.com/g'
Comment

search and replace recursive text file linux

grep -rl "oldtext" /path/to/folder | xargs sed -i 's/oldtext/newtext/g'
Comment

PREVIOUS NEXT
Code Example
Shell :: git clone vs git pull 
Shell :: how to generate master.key rails 
Shell :: command to upgrade upgradable packages on Ubuntu 
Shell :: git reset to origin/master 
Shell :: linux awk print last column 
Shell :: conda python versions 
Shell :: list python versions bash 
Shell :: Could not install from "android" as it does not contain a package.json file 
Shell :: shell write multiple lines to file 
Shell :: How to kill all tmux sessions (or at least multiple sessions) from the CLI? 
Shell :: docker stop all containers 
Shell :: install angular in ubuntu 
Shell :: sudo /opt/lampp/lampp start not working on linux 
Shell :: fayl yaratish cmd 
Shell :: Ndless SDK 
Shell :: ls in mb mac 
Shell :: neovim source current file 
Shell :: sudo command in windows 
Shell :: decode base64 command line 
Shell :: bastighg 
Shell :: vim plug 
Shell :: ubuntu apt uninstall 
Shell :: tar extract to path 
Shell :: kill all processes by name cmd 
Shell :: git stash unstaged 
Shell :: git merge theirs 
Shell :: linux saber la distribución terminal 
Shell :: run tmux on startup 
Shell :: how to install jq to windows 
Shell :: ubuntu change jdk 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =