Re: Extract specific date in a directory and send output through email
From: DaveL (davidludeman_at_cox.net)
Date: 08/14/04
- Next message: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Previous message: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- In reply to: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Next in thread: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Reply: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ;)
- Next message: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Previous message: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- In reply to: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Next in thread: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Reply: Alan Connor: "Re: Extract specific date in a directory and send output through email"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|