Re: Extract specific date in a directory and send output through email

From: DaveL (davidludeman_at_cox.net)
Date: 08/14/04


Date: 14 Aug 2004 05:44:24 -0700

Alan Connor <zzzzzz@xxx.yyy> wrote in message news:<nehTc.20516$9Y6.14161@newsread1.news.pas.earthlink.net>...
> On 13 Aug 2004 20:02:44 -0700, DaveL <davidludeman@cox.net> wrote:
> >
> >
> > Greetings folks...need some help.
> >
> > Here is the current script that I have:
> >
> > This first line is fine and it pulls the entire file strucutre in the directory:
> >
> > ls -lrt /bs/processing/* >> jess1.txt
> >
> > However, my problem is i only need the current days data, today.
> >
> > I thought i could use this:
> >
> > dateM='date | cut -c 5-10'
> > cat jess1.txt ls -lartR |grep "$dateM" >> jess2.txt
> >
> > But this is not pulling out anything.
> >
> > please help....
>
>
> Hi Dave.
>
> You should use find for this.
>
> #!/bin/bash
>
> find /bos/processing -type f -newer ~/.tmp-mailbs-A0ow23YYY | \
> mail whoever@whatever.net -s "BS-DATA-UPDATE" &&
>
> #Overwrite a reference file to be checked by find each time the
> #script is run
> #Create the file manually the first time.
>
>
> touch ~/.tmp-mailbs-A0ow23YYY
>
> # a unique name that gives a clue to the file's origin.
>
>
> Hope this helps. Please don't use the subject of a post as part of
> the body. It's confusing.
>
> I almost dumped your post because it didn't make sense.
>
>
> AC

Thnxs for your help...and not dumping my post ;)



Relevant Pages

  • Re: Good thoughts needed for a good dog
    ... Louie, in the past... ... I *think* it was Louie who-- the very first time we all met, Dave had me hold...? ... a little startling to look at the first time you encounter him but his outgoing personality and innate... ... We're just back from the vet's office this evening, actually, where they X-rayed Cleo and ran blood work on Carmen. ...
    (alt.support.stop-smoking)
  • BostonBills 2008 DaveCon Trip Report
    ... Dave Con Day Thursday. ... Bill DeLace was hanging around talking to some of the crew. ... was the first time I met everyone but Dr. Rod was really cool. ... Eddie and Bill came over to the desk during breaks and ...
    (alt.fan.letterman)
  • Re: which 32bit mcu for automotive application?
    ... Dave wrote: ... I'm just a programmer;) Now, for the first time, I have to choose mcu so I thought asking for help of more experienced people would be good idea;) ... Has two 16-channel TPUs, an 8-channel CTM, CAN, UART, ... Class2, and ADC. ...
    (comp.arch.embedded)
  • Re: Cleaning Heat Riser Tube
    ... but the first time did not remove ... acid and flushed with water. ... After I removed the engine ... dave AKA vwdoc1 wrote: ...
    (rec.autos.makers.vw.aircooled)
  • Re: Trojan alchem.exe & polmx.exe I cant get them of my back
    ... Sorry Dave & Br0wnbear ... first time I have used a disscussion group ... I forgot to mention that I have System restored a number of times, have AVG ... > Download the Trend Pattern File by obtaining the ZIP file. ...
    (microsoft.public.security.virus)