Open rwb196884 opened 1 year ago
I think the empty string value for parameter -i
is an error and the command should be
grep -lr . | xargs sed -i -e '/ifcfg-wlan0/!s/wlan0/wlx00e02d2b29d3/g'
And the list of files to sed
can be cut down considerably by making the grep
more specific
grep -lr wlan0 | xargs sed -i -e '/ifcfg-wlan0/!s/wlan0/wlx00e02d2b29d3/g'