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'

Bash loop over files

awk script to duplicate section under " labels:" of k8s yaml file to " spec: { selector: { matchLables: <...> } }


CategoryLinux

vigor: Linux/FindGrepAwkSedXargs (last edited 2020-06-26 13:19:18 by PieterSmit)