![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| whole word substitution in SED | gikay01 | Shell Programming and Scripting | 7 | 07-16-2008 01:51 PM |
| Last word substitution | capri_drm | Linux | 4 | 06-10-2008 03:19 AM |
| word substitution in unix | capri_drm | Linux | 6 | 05-14-2008 11:36 AM |
| How to use sed substitution using a $variable for a line containing a word | Sangal-Arun | Shell Programming and Scripting | 4 | 08-07-2007 04:09 PM |
| word substitution in csh | oprestol | Shell Programming and Scripting | 1 | 09-15-2005 08:15 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Multiple files and word substitution
Hi ,
I have bunch of sql file which contain UHCDEV01 in them . I want to replace all the UHCDEV01 with UHCETL01 in all the files. I have written this code which shows correct output on sh -x but doesn't change the output file . #cat change_dbname.shl #!/bin/ksh #################################### ls -ltr *.sql | awk '{ print $9 } ' | while read file do sed -e 's/UHCDEV01/UHCETL01/g' $file > $file1 done Thanks in advance |
| Forum Sponsor | ||
|
|