lolaferrari
asked on
script command required for a change to entire os
I was wondering if anyone can recommend how to traverse my entire OS and every instance of hostnamex that is found change it to hostname y please on redhat 7
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@lolaferrari - did you try the above before accepting? When you use sed to replace some text in a file you have to add the -i parameter, like this:
sed -i 's/hostnamex/hostnamey/g'
I would first try on a test folder with some files in it btw.