Using "sed" to update RECURSIVELY a value within a directory in a Red Hat Machine
I spent the whole morning trying to create a shell script ( using "sed" command ) that looks for a value in a directory and its sub directory than changes it with another value but couldn't find the way
a first step, allowded me to trace all the files that contain it and even change this value but not into the file but on the standard output ( the screen ), here after the command :
RESULT ON SCREEN ( here after a single line for exemple ):
Now, what i'am attempting to do, is to change the value "10.220.22.240" with "localhost" INTO ALL THESE FILES !!!
i made this script below but i shoul be missing something :
Can you help please ? thanx
Last edited by mehdi1973; 07-02-2009 at 10:16 AM..
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
... (3 Replies)
how to use "cut" or "awk" or "sed" to get the following result:
xyz (8 Replies)
imagine a table with only one column and 10 rows containing 5 yahoo.de and 5 gmail.com email addressess.
How could I... (2 Replies)
I wanted to simple command to encrypt a file. Using google I got a command "crypt". I could test it very well on Sun solaris. My red hat system says "command not found".Can you please tell me if I can find that package on the cd!!! (2 Replies)