![]() |
|
|
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 |
| Shell Programming and Scripting | nivas | Shell Programming and Scripting | 20 | 02-27-2008 06:36 AM |
| Shell Programming and Scripting | nivas | Shell Programming and Scripting | 21 | 02-25-2008 06:27 AM |
| Shell Programming and Scripting | nivas | Shell Programming and Scripting | 2 | 02-20-2008 02:59 AM |
| Shell Programming and Scripting | nivas | Shell Programming and Scripting | 14 | 02-20-2008 02:07 AM |
| Shell scripting & programming languages | aloysius1001 | UNIX Desktop for Dummies Questions & Answers | 1 | 02-19-2002 12:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Shell Programming and Scripting
Hi
Iam using grep command as follows in my script read_file1() { cat file1.txt | while read line do grep $line file2.txt >> out.txt done } read_file1 This way the performance is very slow. We are having lacks of records in file1 and file2 how can i improve the performance. |
|
||||
|
Quote:
For example, grep -E "one|two|three" yourfile will find any of "one" "two" or "three" in "yourfile" By the way, GNU grep has a lot of neat stuff: grep in depth |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|