The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 01-12-2004
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
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
Closed Thread

Tags
autosys

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0