Jan 27, 2006 #1 baggetta Technical User Feb 27, 2003 116 US Can you show me how to replace the following string in vi. a ./temp/db a ./temp/db change it to: a /db/new a /db/new1
Can you show me how to replace the following string in vi. a ./temp/db a ./temp/db change it to: a /db/new a /db/new1
Jan 27, 2006 #2 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE :1,$ s/^a ./a / would do the trick HTH, p5wizard Upvote 0 Downvote
Jan 27, 2006 #3 Annihilannic MIS Jun 22, 2000 6,317 AU Instead of using :s/water/wine/ you can use any character in place of the "/", for example :s#water#wine#. Alternatively you could escapae the '/' characters in your search and replace strings, i.e. use '\/'. Annihilannic. Upvote 0 Downvote
Instead of using :s/water/wine/ you can use any character in place of the "/", for example :s#water#wine#. Alternatively you could escapae the '/' characters in your search and replace strings, i.e. use '\/'. Annihilannic.
Jan 27, 2006 1 #4 PHV MIS Nov 8, 2002 53,708 FR :%s!\./!/! Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
:%s!\./!/! Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jan 27, 2006 Thread starter #5 baggetta Technical User Feb 27, 2003 116 US thanks for the tips...i found nled editor from AIX and put it on Linux...much easier. Upvote 0 Downvote