Re: do shell scripting a "Find"
Re: do shell scripting a "Find"
- Subject: Re: do shell scripting a "Find"
- From: Jake Pietrykowski <email@hidden>
- Date: Fri, 25 Feb 2005 12:01:58 -0600
Marc,
> On 2/25/05 11:29 AM, "M Ranes" wrote:
>
> I am wanting to find files and applications using shell & applescript. Nothing
> is working, is there anyone who can show me a working method, post a snippet
> to start from, or just some tidbit to work with. I am trying to FIND an
> application or file whose name contains "TheName" and return a path,
> completely in the background? Please help.
I use the following snippet in a shell script or from the terminal. It finds
the file then copies to the my desktop folder
--code [no line breaks, all one line]
find /Volumes/path/to/folder/ -name "$SEARCHSTRING" -exec echo {} \;
--/code
This will echo the path.
Also type 'man find' from the terminal for more information.
Regards,
Jake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden