Page 1 of 1

FIND template

Posted: Tue Jan 14, 2014 10:09 am
by JosDuchIt
I just discovered today that Find 53.1 has a CLI template .
The Doshelp does not yet provide an explanation though
I recall(?) having looked for a template before , don't know when that was last tile and hope it is not a fake recall, but this a big thing to me
It has lots of possibilities the gui doesn't have.
It seems to work as expecting but
- i did not succced in using WITHIN and BETWEEN keywords correctly

also this result was strange
7.Amiga OS 4:Utilities> find NAME MP //OK
Catcomp_ 38396 ----rwed 20/09/2009 00h11
MPlayer.info 6206 ----rw-d 04/11/2013 13h33
MPlayer-GUI.readme 8250 ----rwed 12/09/2010 20h35
GraphicDump.info 19812 ----rw-d 04/11/2013 13h33
GraphicDump 10404 ----rwed 20/09/2009 00h11
ppp_sample 50432 ----rwed 20/09/2009 00h11
MPlayer-GUI.info 11198 ----rw-d 04/11/2013 13h33
BoingBall.sample 48384 ----rwed 11/01/2010 15h38 Blankers
mplayer 9256408 ----rwed 22/08/2009 12h24 MPlayer
MPlayer.in ....
...
7.Amiga OS 4:Utilities> find CASENAME MP //No hit ?? MPlayer-GUI.readme was expected to appear
7.Amiga OS 4:Utilities> find CASENAME MP#? // No hit either??
7.Amiga OS 4:Utilities> find CASENAME MPlayer // Why then hits here? same result as >list Mplayer/
Altivec.info 6206 ----rwed 21/08/2009 13h29 MPlayer
AUTHORS 33077 ----rwed 20/08/2009 19h49 MPlayer
AutoInstall 417 ----rwed 04/11/2007 20h15 MPlayer

Re: FIND template

Posted: Tue Jan 14, 2014 11:02 am
by javierdlr
JosDuchIt wrote:I just discovered today that Find 53.1 has a CLI template .
The Doshelp does not yet provide an explanation though
I recall(?) having looked for a template before , don't know when that was last tile and hope it is not a fake recall, but this a big thing to me
...
7.Amiga OS 4:Utilities> find CASENAME MP //No hit ?? MPlayer-GUI.readme was expected to appear
7.Amiga OS 4:Utilities> find CASENAME MP#? // No hit either??
7.Amiga OS 4:Utilities> find CASENAME MPlayer // Why then hits here? same result as >list Mplayer/
Altivec.info 6206 ----rwed 21/08/2009 13h29 MPlayer
AUTHORS 33077 ----rwed 20/08/2009 19h49 MPlayer
AutoInstall 417 ----rwed 04/11/2007 20h15 MPlayer

CASENAME is a SWITCH (CASENAME/S), try 'find NAME MP CASENAME'
example:
#find NAME da
DateTime_docky.lha 78776 ----rw-d 6-11-2013 23:49:47
DateTime.docky.info 6600 ----rw-d 15-11-2013 08:51:33
datetime_docky.readme 2960 ----rw-d 13-01-2014 15:01:03
DateTime.docky 337837 ----rwed 14-01-2014 09:31:40
DateBrowser.c 5473 ----rwed 14-01-2014 09:41:26
DateBrowser 152053 ----rwed 14-01-2014 09:41:29
DateTime.docky_rev.h 255 ----rw-d 13-01-2014 13:20:50 include

#find NAME da CASENAME
datetime_docky.readme 2960 ----rw-d 13-01-2014 15:01:03

Re: FIND template

Posted: Mon Jan 20, 2014 8:11 pm
by JosDuchIt
Thanks javier.


I remember now that i have looked at this 3 years ago, even started to make gui for it.

As i took this up again i ran into the problem that stopped me/

The LFORMAT option did not work and it still does not here.
Does it for you ?

News on this anybody? ?

Re: FIND template

Posted: Tue Jan 21, 2014 12:06 pm
by javierdlr
JosDuchIt wrote:Thanks javier.


I remember now that i have looked at this 3 years ago, even started to make gui for it.

As i took this up again i ran into the problem that stopped me/

The LFORMAT option did not work and it still does not here.
Does it for you ?

News on this anybody? ?
Seems some %_ LFORMAT options work:
#find NAME #?.ct lformat="FOUND=%l"
#find NAME #?.ct lformat="FOUND=%f"
Didn't try every option/possibility (looking on LIST help documentation)

Re: FIND template

Posted: Tue Jan 21, 2014 2:02 pm
by JosDuchIt
@javier

thanks, it appears that find is allergic to capitals %P%N etc which list accepts.

I was convinced this was the preferred way as the only available doc (from list.doc) uses capitals.in the description of available
LFORMAT options.
I should have asked the question 3 years ago :(