![]() |
|
|
|
|
|||||||
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl: Global Search and replace | epi8 | Shell Programming and Scripting | 3 | 05-06-2008 12:18 PM |
| Global Variable in awk... | ZINGARO | Shell Programming and Scripting | 1 | 07-04-2007 10:07 AM |
| global replace... | topcat8 | Shell Programming and Scripting | 1 | 10-16-2005 10:10 PM |
| global replace with vi | pixtond | Shell Programming and Scripting | 3 | 06-11-2004 01:54 AM |
| Global search ok...but replace? | alan | UNIX for Dummies Questions & Answers | 0 | 03-25-2004 12:22 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Global replace with sed
Hi,
I need to change some strings from A to B in a number of files within a directory. Please can someone advise how do I do that? Many thanks |
| Forum Sponsor | ||
|
|
|
|||
|
"It doesn't like" is not very specific, do you get an error message or surprising results or nothing at all?
You are not saving the output from sed anywhere so my guess would be you would see the files roll across your screen with the substitutions made as requested. If your sed supports the -i option then you can use that. Otherwise a simple temporary external script is probably the way to go. |
| Tags |
| solaris |
| Thread Tools | |
| Display Modes | |
|
|