From: Atropo on
On Jul 30, 12:44 pm, Loki Harfagr <l...(a)thedarkdesign.free.fr.INVALID>
wrote:
> Thu, 29 Jul 2010 19:10:38 -0700, Atropo did cat :
>
> > Hi all.
>
> > find +/- 1 seens to count days.  with the newer option  i have to create
> > one file 1 hour early.  that a certain hour i pretend to raise a script
> > to check if the today file has arrive  if not  then send mail.
>
> > thanks in advance
>
> in case you have the GNU find it supports the -mmin option similar to -mtime
> but with time graduation in minutes instead of days, hence something
> like this could make the grade:
> $ find ... -mmin -60 -name '*wanted*'

Loki.
sorry no GNU tools. and i can't change that.
SunOS servername 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T200


Janis.
filenames doesn't have timestamp. i only count with the time that
gave me the ls -l

awk '$6 ~ /Jul/ && $7 ~ /30/ && $8 ~ /^07/ {print $0}'

From: Janis Papanagnou on
On 30/07/10 22:48, Atropo wrote:
> On Jul 30, 12:44 pm, Loki Harfagr <l...(a)thedarkdesign.free.fr.INVALID>
> wrote:
>> Thu, 29 Jul 2010 19:10:38 -0700, Atropo did cat :
>>
>>> Hi all.
>>
>>> find +/- 1 seens to count days. with the newer option i have to create
>>> one file 1 hour early. that a certain hour i pretend to raise a script
>>> to check if the today file has arrive if not then send mail.
>>
>>> thanks in advance
>>
>> in case you have the GNU find it supports the -mmin option similar to -mtime
>> but with time graduation in minutes instead of days, hence something
>> like this could make the grade:
>> $ find ... -mmin -60 -name '*wanted*'
>
> Loki.
> sorry no GNU tools. and i can't change that.
> SunOS servername 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T200
>
>
> Janis.
> filenames doesn't have timestamp. i only count with the time that
> gave me the ls -l

So your files *do* have time stamps; those that you see with ls.

(My question was focussing on something different; if you have written
those files to the file system in a caconical way, say you have copied
them with cp and without extra options, then the actual time stamp will
be associated to the file name. But you may as well have created them
from an archive with different time stamp, the one that was created
when the file had been created in the original place.)

So if the time stamp seen by ls is what you want, then you can use the
script I proposed. (You still need the stat(1) command on your system,
though.)

Janis

>
> awk '$6 ~ /Jul/ && $7 ~ /30/ && $8 ~ /^07/ {print $0}'
>

From: Atropo on
On Jul 30, 5:18 pm, Janis Papanagnou <janis_papanag...(a)hotmail.com>
wrote:
> On 30/07/10 22:48, Atropo wrote:
>
>
>
> > On Jul 30, 12:44 pm, Loki Harfagr <l...(a)thedarkdesign.free.fr.INVALID>
> > wrote:
> >> Thu, 29 Jul 2010 19:10:38 -0700, Atropo did cat :
>
> >>> Hi all.
>
> >>> find +/- 1 seens to count days.  with the newer option  i have to create
> >>> one file 1 hour early.  that a certain hour i pretend to raise a script
> >>> to check if the today file has arrive  if not  then send mail.
>
> >>> thanks in advance
>
> >> in case you have the GNU find it supports the -mmin option similar to -mtime
> >> but with time graduation in minutes instead of days, hence something
> >> like this could make the grade:
> >> $ find ... -mmin -60 -name '*wanted*'
>
> > Loki.
> > sorry no GNU tools.   and i can't change that.
> > SunOS servername 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T200
>
> > Janis.
> > filenames doesn't have timestamp.  i only count with the time that
> > gave me the ls -l
>
> So your files *do* have time stamps; those that you see with ls.
>
> (My question was focussing on something different; if you have written
> those files to the file system in a caconical way, say you have copied
> them with cp and without extra options, then the actual time stamp will
> be associated to the file name. But you may as well have created them
> from an archive with different time stamp, the one that was created
> when the file had been created in the original place.)
>
> So if the time stamp seen by ls is what you want, then you can use the
> script I proposed. (You still need the stat(1) command on your system,
> though.)
>
> Janis
>
>
>
> > awk '$6 ~ /Jul/ && $7 ~ /30/ && $8 ~ /^07/ {print $0}'

what is the 'stat' for ? i think i don't have it

beside it comes out this error

/usr/xpg4/bin/awk -v d=$(date +%Y-%m-%d) -F $'\t' '$1~"^"d"
07" {print $NF}' aa
/usr/xpg4/bin/awk: syntax error "unk" in //
Context is:
>>> 2010-07-30$\t <<<

aa is a file with the output of ls -l
From: Randal L. Schwartz on
>>>>> "Atropo" == Atropo <lxvasquez(a)gmail.com> writes:

Atropo> Hi all.
Atropo> find +/- 1 seens to count days. with the newer option i have to
Atropo> create one file 1 hour early. that a certain hour i pretend to raise
Atropo> a script to check if the today file has arrive if not then send
Atropo> mail.

All you need is Perl, which most systems have installed:

find2perl . -eval '-M $_ < 1/24' .... | perl

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
From: Atropo on
On Jul 30, 6:08 pm, mer...(a)stonehenge.com (Randal L. Schwartz) wrote:
> >>>>> "Atropo" == Atropo  <lxvasq...(a)gmail.com> writes:
>
> Atropo> Hi all.
> Atropo> find +/- 1 seens to count days.  with the newer option  i have to
> Atropo> create one file 1 hour early.  that a certain hour i pretend to raise
> Atropo> a script to check if the today file has arrive  if not  then send
> Atropo> mail.
>
> All you need is Perl, which most systems have installed:
>
> find2perl . -eval '-M $_ < 1/24' .... | perl
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <mer...(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> Seehttp://methodsandmessages.vox.com/for Smalltalk and Seaside discussion

as a newbie i just throw the command you gave me but don't know where
to look for find2perl

ksh: find2perl: not found