Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: kamiga on April 16, 2009, 03:50:04 AM

Title: how to find files that contain a particular string
Post by: kamiga on April 16, 2009, 03:50:04 AM
I need to search recursively through a hard drive to find files that contain a particular string.

maybe grep -r "findme" * type equivalent.

This is workbench 3.1.

I really can't remember how I used to do this!@#?

Thanks
Title: Re: how to find files that contain a particular string
Post by: MozzerFan on April 16, 2009, 04:46:51 AM
Edit: WB3.1 has the search command to do this.
The following example searches in all files on the sys: partition.
search sys: "" ALL QUIET

There are some grep utilities for the amiga on aminet (http://m68k.aminet.net/search?query=grep) though.
Some claim to be faster than the search command.
Title: Re: how to find files that contain a particular string
Post by: ChaosLord on April 16, 2009, 12:00:27 PM
AmigaOS Search command is ridiculously slow.  Don't bother.

FlashFind is the fastest one.  It is massively faster than lame old grep.

FlashFind is on Aminet.  I have been using it almost every day for around 10 years.
Title: Re: how to find files that contain a particular string
Post by: kamiga on April 17, 2009, 05:59:33 PM
Thanks for the posts.

I remember the AmigaOS search now.  Yeah it was horribly slow.

Thanks for the aminet recommendation.

Keith