Differences between revisions 2 and 3
Revision 2 as of 2019-10-17 03:12:06
Size: 221
Editor: PieterSmit
Comment:
Revision 3 as of 2019-12-14 12:25:10
Size: 411
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe Linux/FindGrepAwkSed here. Describe Linux/FindGrepAwkSedXargs here.
Line 6: Line 6:

== Search dir for files containing string and replace all of them ==
{{{
##e.g. search for tentant -> tenant
grep -irlZ 'tentant' ./ | xargs -0 sed -i 's/tentant/tenant/g'
}}}

Describe Linux/FindGrepAwkSedXargs here.

Find files containing something in Linux

Search dir for files containing string and replace all of them

##e.g. search for tentant -> tenant
grep -irlZ 'tentant' ./ |  xargs -0  sed -i 's/tentant/tenant/g'


CategoryLinux

Linux/FindGrepAwkSedXargs (last edited 2024-01-24 20:48:46 by PieterSmit)