10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I was wondering If you could help me out.
I Am using a batch script to midfy some text files.
912904Amongst others I use this line:
REM I want to replace all lines that start with a 6-digit Number with a ftp command "get" followed by a path and the 6-digit... (9 Replies)
Discussion started by: SIEMI
2. Shell Programming and Scripting
I have a file (input) which contains are below.
Member Analytics Engine
I want to change contains as below by using sed command
'Member Analytics Engine';
First, I tried to add (') on every first line by using sed... (8 Replies)
Discussion started by: anshu ranjan
3. Shell Programming and Scripting
I got test.test.test and need
I need the backslash before the last dot in the line
echo test.test.test | sed 's/\./\\./g'
but it gives me
Thanks (7 Replies)
Discussion started by: stinkefisch
4. UNIX for Dummies Questions & Answers
I have a text file that contains
My requirement is to replace all occurrence of =* to =Z
expected o/p is I1SP2 *=Z=Y=M=D001D
I have tried with
sed 's/=*/=Z/g' file
sed 's!\=*!\=Z/g' file
sed 's!\=*!\=Z!g' file
sed 's!\=\*!\=Z!g' file
but its not... (3 Replies)
Discussion started by: gotamp
5. Shell Programming and Scripting
How can I replace the follong text including to number 7000?
Winston (UK) Wong
I would the 7000 to replace Winston (UK) Wong.
I fail with method below:
sed ' s /Winston\(UK\)Wong/7000 tmp0.txt' (1 Reply)
Discussion started by: vivien_chu
6. Shell Programming and Scripting
I have input file like below
Hi this is "vinoth".
Hi happy to work with 'unix'
USA(united states of America)
My script variables are below :
I want to read the variables in my SED command to replace the double quote,single... (9 Replies)
Discussion started by: vinothsekark
7. Shell Programming and Scripting
I have the replace the pattern in the file , ); to );
Could someone please help me to get this command. (2 Replies)
Discussion started by: mohan.bit
8. Shell Programming and Scripting
I need to do the following:
text in the format of: ADDRESS=abcd123:1111
- abcd123:1111 is different on every system.
replace with: ADDRESS=localhost:2222
sed 's/ADDRESS=<What do I use here?>/ADDRESS=localhost:2222/g'
Everything I've tried ends up with:
... (3 Replies)
Discussion started by: toor13
9. Shell Programming and Scripting
I am doing something that I don't know if it is possible...
I have a file with a line looks like this:
<%s \n%s / %s \n%s \n>
and I am trying to replace this line with
<%s \n%s \n%s / %s \n%s \n>
in Shell script with sed command...
StringToReplace='%s \n%s / %s \n%s \n'... (2 Replies)
Discussion started by: wasabihowdi
10. Shell Programming and Scripting
I want to replace ./testsed.ksh
./ is to be removed
scriptnm=`sed -e 's/\.///' $0
does not work
Please help (3 Replies)
Discussion started by: usshell