On Thu, 9 Apr 1998, John Higginbotham wrote:
>A local friend found the problem. Here is the complete working command
>line:
>
>date +'%b %_d'>file.txt
>(no double-quotes needed; grep takes content as literal
>
>ls -laR /home/higginbo | grep -f file.txt | mail higginbo

Or:

    ls -alR /home/higginbo | grep "`date '+%b %_d'`" | mail higginbo
                             ^^^^^^^^^^^^^^^^^^^^^^^
This eliminates the need for a temporary file.

-- 
    Steve Coile
 [EMAIL PROTECTED]


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to