Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
19 user(s) are online (9 user(s) are browsing Forums)

Members: 0
Guests: 19

more...

Support us!

Headlines

 
  Register To Post  

FIND dos command
Just can't stay away
Just can't stay away


See User information
Questions
1) I do have a lot of archives in the lha: drawer, some with filenotes pointing to the download URL, others with an empty filenote

Find lha: COMMENT ~%

does not give any output.
I would have expected to get all files with a non-empty file note.

2) i did not find a way to restrict the search to the current directory, (no recurrent search in the subdirectories . If this is impossible is this in the pipeline for a new version?

3) What are the BETWEEN and the WITHIN keywords for ?



Go to top
Re: FIND dos command
Not too shy to talk
Not too shy to talk


See User information
1) try ~(#?)

Why do you think that % is a wildcard?


Edit: sorry, ~(#?) will only list those without a comment. Try ?#? to get those with at least one character.



Edited by thomas on 2011/10/17 13:54:00
Go to top
Re: FIND dos command
Just can't stay away
Just can't stay away


See User information


Quote:
Why do you think that % is a wildcard?


according to RKRM % stands for the NULLL string
http://amigadev.elowar.com/read/ADCD_ ... _Vol2_guide/node0069.html

Find COMMENT ~(#?) seems not even to list the ones without a filenote ( or all the filenotes i recognise as empty would contain some blanks only - i doubt that is the case, anyway going to look at it lore closely)

?#? works OK, thanks

Go to top
Re: FIND dos command
Just can't stay away
Just can't stay away


See User information
@JosDuchit
Quote:
according to RKRM % stands for the NULLL string

It's also listed in the AmigaDOS book that came with my A4000. I don't have the A4000 anymore but I kept the books. I don't think I've ever seen it used other that in an example in the Amiga Guru Book. The example is: foo(%|.info) which would match foo or foo.info. Did you try ~(%) to see it makes a difference?

Go to top
Re: FIND dos command
Not too shy to talk
Not too shy to talk


See User information

Quote:
The example is: foo(%|.info)


This works as well: foo(|.info)
I never needed to put a % sign in there.

Go to top
Re: FIND dos command
Just can't stay away
Just can't stay away


See User information
@xenic

find COMMENT ~(%) does not work : not a sigle file recognized. Probably % is interpreted s any other character

Go to top
Re: FIND dos command
Quite a regular
Quite a regular


See User information
Or, since filenames cannot be empty, the wildcard matching doesn't like empty strings either.

Go to top
Re: FIND dos command
Just can't stay away
Just can't stay away


See User information
@thematic
we are talking about comments where empty strings are fairly commond

There is an other difference to be noted with the normal pattern matching eg used by the list command:
a#? in Find is the same as
#?a#? in List command (normal amiga pattern matching)

If the FIND way of pattern matching is where AmigaOS4 is going a character identifying the start of the string (^ caret in python) is lacking.
OS4 developers should then go all the way and also define a character symbolizing the end of the string



Go to top
Re: FIND dos command
Just popping in
Just popping in


See User information
Hmm... I wonder why nobody here tried the ? wildcard.

"find COMMENT ?" finds only files with at least one character within the comment field. One could extend this pattern with several other patterns contained within brackets, I would suppose.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project