RE: Grepping shell script

1998-04-09 Thread John Higginbotham
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 If I had run grep in verbose mode, I would know that it was actually searching f

RE: Grepping shell script

1998-04-09 Thread David . LANDGREN
>Are general linux questions off-topic here? I'm trying to automate some >tasks, one of which is detailed below: Many people around here (myself included) enjoy solving these sorts of problems. >With the following commands in a shell script, I want to search for files >that have been modified on

RE: Grepping shell script

1998-04-09 Thread John Higginbotham
At 06:48 AM 4/9/98 -0400, you wrote: >ls -alR /home/higginbo | grep "`date '+%b %_d'`" | mail higginbo > ^^^ >This eliminates the need for a temporary file. Ah, yes, someone told me about this too, but I plan on modifying this basic script to h

RE: Grepping shell script

1998-04-09 Thread David . LANDGREN
>>ls -alR /home/higginbo | grep "`date '+%b %_d'`" | mail higginbo >> ^^^ >>This eliminates the need for a temporary file. > >Ah, yes, someone told me about this too, but I plan on modifying this basic >script to handle other operations as well.

RE: Grepping shell script

1998-04-09 Thread Steve \"Stevers!\" Coile
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/higgi