Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
shell script/sed/awk
Name: mehul Date: May 14, 2003 at 13:01:40 Pacific OS: sun 5.8 CPU/Ram: sun
Comment:
Hi gurus ,
I need a help .....i have a file #CORBA TESTCASES ARE REMOVED FROM HERE. THEY ARE RUN IN WINDOWS NOW... #CORBA TESTCASES #xrun /AutoCtm/testcases/try saf #xrun /AutoCtm/testcases/corba/corba_equip_prov http://wwwin-tims-omu.cisco.com/include/r.cfm?id=7 #xrun /AutoCtm/testcases/corba/corba_circuit_prov http://172.28.170.120/circuit_result.html # ############# # Scripts to be executed goes here. Script should preceed with "!" !TL1 script=/AutoCtm/Tl1/Scripts/Bin/tl1-start resultXML=/AutoCtm/Tl1/xml/results.xml resultURL=http://wwwin-tims-omu/include/r.cfm?id=155 !DBRESTORE script=/AutoCtm/restorescript.sh resultXML=/AutoCtm/Tl1/xml/results.xml resultURL=http://wwwin-tims-omu/include/r.cfm?id=155 #
i have to grep for the line "/AutoCtm/Tl1/Scripts/Bin/tl1-start" in the file and replace it with another string + i want to add to more parameters to it
final string should be script=/xyz/abc/ddd/eee arg1 arg2
how do i search in a file for this particualr string and replace it with sed i was able to replace a single word but how do i search it for strings with "/"
Summary: Hi i've been trying to write shell script with awk that I want to search a substring with variable of shell script In old one ,I wrote awk that find 'xxx' in myfile : #!/bin/ksh awk '/xxx/' myfile...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4 Output file: (all in one line now) Line1Line2Line...
Summary: How do i transfer the value from a shell script to awk script... for example: echo "blah.. blah.." read x echo `ls -l | awk '{if (NR=x) print $9}' i'm trying to get the value of x to be insert to the ...