![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can i add two numbers | kripssmart | UNIX for Dummies Questions & Answers | 4 | 01-06-2009 06:45 PM |
| Numbers of records in SAS dataset | sasaliasim | Shell Programming and Scripting | 2 | 04-21-2008 05:55 PM |
| need top 3 numbers | shary | Shell Programming and Scripting | 4 | 03-25-2008 01:58 AM |
| How to add numbers? | pnxi | Shell Programming and Scripting | 7 | 09-11-2003 07:25 AM |
| Add some numbers! | TalkShowHost | Shell Programming and Scripting | 3 | 05-15-2002 01:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
for i in `cat numbers.dat`
do cat data.dat|awk -F"," '{if($1~/number/) print $0}' number="$i" done > newfile.dat ~/number/ tries to match(regular expression) content of first field in the record with value in "number" variable. |
![]() |
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|