![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replace text in multiple files | Tonka52 | Shell Programming and Scripting | 10 | 03-24-2008 08:11 AM |
| Find and replace files in multiple folders | lodey | Shell Programming and Scripting | 6 | 09-28-2007 02:00 AM |
| How can I replace multiple lines from different files | ranga27 | Shell Programming and Scripting | 2 | 02-07-2007 08:57 PM |
| Replace text in match files | wilsonchan1000 | UNIX for Dummies Questions & Answers | 1 | 12-16-2002 09:21 AM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 02:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Replace text in multiple files
Dear all
My task is to replace a strings in multiple files. filename: file1 Quote:
e.g. sed 's/abc.server.com/unix.server.org/g file1 > newfile1 I have 2 questions. How do I
Purpose Provides a stream editor. Syntax sed [ -n ] Script [ File ... ] sed [ -n ] [ -e Script ] ... [ -f ScriptFile ] ... [ File ... ] Thank you very much for your help in advanced. |