10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to do find and replace, but the pattern is not full known.
my file has /proj/app-d1/sun or /data/site-d1/conf
here app-d1 and site-d1 is not constant. It may be different in different files. common part is /proj/xx/sun and /data/xxx/conf
i want to find where ever... (6 Replies)
Discussion started by: rbalaj16
2. Shell Programming and Scripting
I want to pattern match only path part from below and replace them with new path string.
LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so
JkLogFile... (4 Replies)
Discussion started by: kchinnam
3. Shell Programming and Scripting
my requirement is,
consider a file output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
this doesnt look good
et cetc etc
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
4. Shell Programming and Scripting
How can i find and replace the one path to another path with in the file.
I used the following command but not usefull, please help me regarding the same.
sed 's_/search/path_/replace/path_' file_name >... (6 Replies)
Discussion started by: nsyed.dw
5. Shell Programming and Scripting
I am attempting to find the path /subject/grin* and replace it with /subject/$i
for i in $(ls)
sed -e 's:"/subjects/grin.*":"/subjects/$i.*":g'
and several variants with no luck. Please help. Thanks! (8 Replies)
Discussion started by: JC_1
6. Shell Programming and Scripting
I have to search for a keyword (UTF-16) in xml file and if the keyword is found i have to convert the encoding type in the file to UTF-8 and then replace the keyword inside the file from UTF-16 to UTF-8.
I have the code which is working for one file but for number of files in a path its not... (2 Replies)
Discussion started by: Shruthi8818
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
8. Shell Programming and Scripting
i need to replace a line a file with a new raw device location..
-c/apps/sybase/ASE1502/ASE-15_0/TST_AKS1.cfg \... (2 Replies)
Discussion started by: aksaravanan
9. Shell Programming and Scripting
I have a file with below values.
/uvxapps/etl/Ascential/DataStage/DSEngine/sample/.login... (3 Replies)
Discussion started by: njoshi
10. Shell Programming and Scripting
I have abt 20-30 scripts using a directory structure. I have to replace a directory structure in a file for example "/i01/proc" with "/dwftp/scripts" using sed.
The command :-
cat filename | sed 's/"i01/proc"/"dwftp/scripts"'
is not working.
Can someone help me in this regard?
... (3 Replies)
Discussion started by: venkatajay_18