![]() |
|
|
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 |
| Perl: Search for string on line then search and replace text | Crypto | Shell Programming and Scripting | 4 | 01-04-2008 10:24 AM |
| Search and Replace in Ksh | DeepakXavier | Shell Programming and Scripting | 9 | 05-28-2007 09:11 AM |
| sed search and replace | d__browne | UNIX for Dummies Questions & Answers | 7 | 04-26-2006 10:46 AM |
| Help, sed search&replace | mle | Shell Programming and Scripting | 2 | 02-13-2004 01:28 PM |
| Search and replace sed or tr | bridgeje | Shell Programming and Scripting | 6 | 10-28-2003 07:54 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
tricky search replace: Pls help.
Hi,
I have a a mysql dump text file. I need to replace the below line ------------------------------------------------------------------- ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; ------------------------------------------------------------------- with this text ------------------- ) TYPE=MyISAM; ------------------- using a shell script. How can I do this. Please help. Thank you in advance. regards, Vai |
|
||||
|
Quote:
Code:
sed 's/ENGINE=MyISAM.*/TYPE=MyISAM;/' a.sql > b.sql |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|