Welcome, Guest. Please login or register.

Author Topic: how to find files that contain a particular string  (Read 1273 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
how to find files that contain a particular string
« 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
 

Offline MozzerFan

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 607
  • Country: 00
    • Show only replies by MozzerFan
Re: how to find files that contain a particular string
« Reply #1 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 though.
Some claim to be faster than the search command.
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: how to find files that contain a particular string
« Reply #2 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.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: how to find files that contain a particular string
« Reply #3 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