Home
Certification Preparation
LPI, Red Hat & Linux Foundation
ideas on a string search
Therhino
Ok
I was tasked with trying to find and figure out which files need changed in the case of a hostname change or an ip change. Rather than reverse enigeering the entire build process i was wondering if there was a way to do a recursive search per ./ where i could just say enter /etc do say find ./ -string 192.168.1.100
thanks in advance for any insight commandline fu had something close but I couldnt work it....we are using rhel
Find more posts tagged with
Comments
tiersten
Use grep and the recursive option.
darkerosxx
Just as said above, try:
grep -r "192.168.1.100" /
Therhino
thanks guys...really appreciate the help feel like super newb for how easy the answer is
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of