![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Selecting a line value | unibboy | Shell Programming and Scripting | 4 | 02-12-2008 02:41 PM |
| tar - Selecting target dir | GNMIKE | UNIX for Dummies Questions & Answers | 3 | 11-05-2005 03:52 AM |
| selecting each paragraph and put it into a file...help me | swamymns | Shell Programming and Scripting | 2 | 10-04-2005 08:46 AM |
| Selecting information from several web pages... | Vishnu | UNIX for Dummies Questions & Answers | 2 | 11-06-2002 02:04 PM |
| Selecting unknown string. | Cameron | UNIX for Dummies Questions & Answers | 2 | 12-18-2001 12:48 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
||||
|
||||
|
This will check all lines that have MP as the first field and assumes that the date is in the third field (same as the sample data)...
awk -v today=$(date "+%Y%m%d") '$1=="MP" && substr($3,9,8)!=today {system("/path/to/alert/script");exit}' /path/to/data/file |
||||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|