Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
64 user(s) are online (61 user(s) are browsing Forums)

Members: 0
Guests: 64

more...

Support us!

Headlines

 
  Register To Post  

Utilities/Find
Quite a regular
Quite a regular


See User information
Hi,

Using the default Find tool that comes with OS 4.1+ I am trying to get the syntax to pattern match not just one file extension, but multiple with no luck.
Anyone got this to work?

Examples that don't work for me:

find name "#?.jpg|#?.png" dirs images:
find name #?.jpg|#?.png" dirs images:
find name "#?.jpg" | "#?.png" dirs images:
find name "#?.jpg" name "#?.png" dirs images:

Go to top
Re: Utilities/Find
Just can't stay away
Just can't stay away


See User information
Use parenthesis, like this:
find name "(#?.jpg|#?.png)" dirs images:

Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
Go to top
Re: Utilities/Find
Not too shy to talk
Not too shy to talk


See User information

#?.(jpg|png)

less typing and more obvious that it's the extension which is important.


Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
Excellent, thanks guys!

Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
Fits perfectly into my Jack application with little effort, seems I pre-empted correctly early on how I was gonna make the best use of Find at a later date.

Seems the pattern matching in AmigaOS is quite flexible.... I can do this for example:

holiday#?.(png|jpg|gif|ilbm|lbm|iff|pcx|tiff|jpeg)

and it just works!

Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
Actually I have quick question.

Does every hard disk or partition have its own .recycled directory?

I am guessing the answer is Yes?

Go to top
Re: Utilities/Find
Just popping in
Just popping in


See User information
@djrikki

No, it's a feature introduced by SFS and supported by JXFS as well. FFS partitions don't have such a directory for example.

Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
What I mean is can there be multiple instances of .recycled? Or is there just one main .recycled repository existing on one device?

Go to top
Re: Utilities/Find
Just can't stay away
Just can't stay away


See User information
There's one .recycled directory per partition (providing the filesystem supports it). I hope I understood your question.

Go to top
Re: Utilities/Find
Not too shy to talk
Not too shy to talk


See User information
Quote:

centaurz wrote:
it's a feature introduced by SFS


That's not true. The function first appeared in AFS (AmiFileSave), the predecessor of PFS. SFS just copied it with another name (AFS called it .deldir).


Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
Okay thanks MickJT, thats what I needed to know.

Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
Now all we want is for Find to remember directories one adds.

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
Deniil, intriguing. Please elabroate.

Go to top
Re: Utilities/Find
Quite a regular
Quite a regular


See User information
When you use the button "Add Path", the added path is only temporary. When you exit the program and restart, the added path has gone.

It would be great if we could add our favourite paths to tooltypes and keep them for next time. For instance, I would add SDK:Documentation/Autodocs/ and SDK:include/include_h/.

cheers
tony
Go to top
Re: Utilities/Find
Just can't stay away
Just can't stay away


See User information
@tonyw

Use FindMore instead !

Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
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