![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 06:44 AM |
| How to scan a file for literal, return 0 or 1 if found? | bobk544 | Shell Programming and Scripting | 11 | 08-02-2007 04:04 PM |
| Get the return log file | Lutchumaya | Shell Programming and Scripting | 1 | 01-26-2007 07:09 AM |
| Carriage Return at end of file | bd_joy | Shell Programming and Scripting | 14 | 10-20-2006 01:20 PM |
| unknown error message "sh: No: not found" | cindytucci | UNIX for Advanced & Expert Users | 2 | 07-26-2005 12:44 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Return a message when a file is not found
Hi there,
I am writing a script to look for tmp log files that have not been access within the last 10 days. I am using the follwing command within the script: find /var/tmp -name *log -atime -9 ¦xargs What I would like to be able to do would be to display a message if there is no files listed.. How would I go about this (I am new to Unix and scripting) Rgds Colin |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|