![]() |
|
|
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 |
| AWK optimization | majormark | Shell Programming and Scripting | 2 | 06-02-2009 12:10 PM |
| unix script optimization | max_payne1234 | UNIX for Dummies Questions & Answers | 3 | 04-06-2009 09:58 AM |
| script optimization | vivek.gkp | Shell Programming and Scripting | 3 | 11-06-2008 05:37 AM |
| On Premature Optimization | iBot | Complex Event Processing RSS News | 0 | 02-12-2008 05:20 AM |
| Help on optimization of the script | aju_kup | UNIX for Dummies Questions & Answers | 2 | 11-20-2007 02:21 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
sed optimization
I have a process using the following series of sed commands that works pretty well.
sed -e 1,1d $file |sed 1i\\"EHLO Broadridge.com" |sed 2i\\"MAIL FROM:${eaddr[0]}"|sed 3i\\"RCPT TO:${eaddr[1]}"|sed 4i\\"DATA"|sed 5s/.FROM/FROM:/|sed 6s/.TO/TO:/|sed 7,7d|sed s/.ENDDATA/./|sed s/.ENDARRAY// >temp/$file I now need this to run much faster... I'm thinking its pretty slow because I'm calling sed so many times; but I can't figure out how to get this to run in one instance of sed... help. Thanks Niten |
| Bookmarks |
| Tags |
| sed optimization |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|