![]() |
|
|
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 | 2 | 02-20-2008 02:59 AM |
| Shell Programming and Scripting | nivas | Shell Programming and Scripting | 14 | 02-20-2008 02:07 AM |
| Shell Programming and Scripting | nivas | Shell Programming and Scripting | 3 | 02-13-2008 08:10 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 having file1 as follows: ERTYUIOU|1234567689089767688 FDHJHKJH|6817738971783893499 JFKDKLLUI|9080986766433498444 FILE2 Code:
ERTYUIOU|1234567689089767688 resh@abc_com 767637218328322332 893589893499 asdsddssd 2008 80930`2323232 JFKDKFDF|0980897489377324734 UIYUEEIIXCZHOPOW[OGTI U IUEOIWERIWERERRE 78978978123823 9 90990990-033-93-0909 JKDDFJLKJFDLFKD I HAVE GIVEN ONLU 2 LINES IN FILE2 there are lacs of recorsd in file2. i need to take 1st line in file1 and take that record in file2. i have used grep command to fetch records from file2....but it is taking hours of time to fetch lacks of records so i don't want to use grep. instaed how i can take the records from file2 by keeping file1 records. Thanks in advance. main goal is to optimise the time taken for greping. i want to finish the entire fecthing within few minutes. |
| Bookmarks |
| Tags |
| awk, sed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|