10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file which contains timestamp and date in the second column. If the line contains one of the word then it need to be replace like below. Any help is appreciated.
... (1 Reply)
Discussion started by: JoshvaPeter
2. UNIX for Advanced & Expert Users
I want to search for a specific word in file and replace whole line with new text.
1) I have file with below lines
I need perl command which will check for APP=$VAL and replace whole line with APP=$NEWVAL $NEWDT
Simlarly need a... (2 Replies)
Discussion started by: mgpatil31
3. Shell Programming and Scripting
I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap".
In the Directory,
$ grep -l "xsgd1234dap" *.sh | wc -l
I have "119" files that are still using... (5 Replies)
Discussion started by: filter
4. Shell Programming and Scripting
I want to replace a word in a file which occurs after a particular word.
For example :
AND c1 = 'I'
AND c2= '2'
AND c1= 'I'
AND c2= '0'
So in this example i want to replace... (4 Replies)
Discussion started by: ashwin3086
5. Shell Programming and Scripting
Hello Unix Users,
I am very new to Unix so I am not sure how do I do the following.
I need a script such that when I type the following in the command prompt
> . scriptName.sh wordToBeReplaced DirectoryLocation
will find the word someword located in a somefile.xml in DirectoryLocation... (8 Replies)
Discussion started by: 5211171
6. Shell Programming and Scripting
this belongs a little to my other post but only at the starting point.
find -name "*.htm*" i got a list like this:
./2000/file1.html... (2 Replies)
Discussion started by: Tonda
7. Shell Programming and Scripting
abc :-X 1234 :-X fjhfkf :-X ffwerw :-X fdfgetw :-X hwfhe89 :-X
in the this file there are 6 occurance of -X
i want to replace only first 3 occurances of '-X' with 'XY'
and write back to same file. (4 Replies)
Discussion started by: nawazkhan77
8. Windows & DOS: Issues & Discussions
how do I replace a word in a file using DOS commands?? (1 Reply)
Discussion started by: sabithareddym
9. Shell Programming and Scripting
there are 300 files in a directory , some of these files has a word "error" , I word to change this word to "message" , can advise what can i do ? thx. (5 Replies)
Discussion started by: ust
10. Shell Programming and Scripting
I have a Template file 'TL.body' which says as follows:
"There are no <FILENAME> files on the server. "
The missing file names are identified and stored in a variable.
For Eg: MISSFILE="abc.txt def.txt xyz.txt"
I want the values of MISSFILE variable to be replaced against... (2 Replies)
Discussion started by: brap45