9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file change.sed
I fire the below command inorder to replace "22.214.171.124" with "10.4.112.240" in proxy.logsed -f change.sed proxy.log proxy.log has the below entry
The command replaces both 126.96.36.199 & 188.8.131.52 as below:
I am expecting... (17 Replies)
Discussion started by: mohtashims
2. Shell Programming and Scripting
am getting output file, it sontains the below values.
Now I need to grep the word "DOM1_FIRST_ENV","DOM2_SECOND_ENV"
I tired with cut -d "_". Its not working with any deleimiter.
Can you please help to... (3 Replies)
Discussion started by: ckchelladurai
3. Shell Programming and Scripting
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Discussion started by: JC_1
4. Shell Programming and Scripting
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Discussion started by: thibodc
5. Shell Programming and Scripting
I am currently working with a bash script to change some names around in 3 files. I am attempting to do this with sed but I haven't been able to get it so it won't replace partial matches.
Below is an example of the files I am trying to edit.
My main goal is to replace foo with test, but I... (4 Replies)
Discussion started by: Takau
6. Shell Programming and Scripting
Can anyone help me to replace ='is NOT NULL' to is NOT NULL in perl.
I tried all the methods which i know, i didnt arrive at the solution.
---------- Post updated at 03:01 PM ---------- Previous update was at 02:56 PM ----------
I got it.......!
Thanks, (1 Reply)
Discussion started by: jam_prasanna
7. Shell Programming and Scripting
I have a file
I want to replace only "DS" to "DSmail.blah.com" in a lot of files. I tried
sed 's/DS/DSmail.blah.com' but it changes all the lines .
thanks in advance (2 Replies)
Discussion started by: gubbu
8. Shell Programming and Scripting
Im trying to run a search and replace of exact strings and the strings that im using variables that are passed through an array in a while loop. Here is a snip of my code:
USEROLDARRAY=( $USEROLD )
USERNEWARRAY=( $USERNEW )... (4 Replies)
Discussion started by: skizim
9. Shell Programming and Scripting
Search and Replace a string pattern with empty in an xml file in unix:
My xml file would be like this :
... (1 Reply)
Discussion started by: harish_s_ampeo