[ale] find command and customization

John Pilman jcpilman at gmail.com
Mon Aug 1 08:44:05 EDT 2011


Oops, I left out the maxdepth specification:

alias f='find . -maxdepth 1 -type f -name'

On Mon, Aug 1, 2011 at 8:43 AM, John Pilman <jcpilman at gmail.com> wrote:
> I usually avoid re-writing the common commands. Instead I pick a
> similar name.  In this case it would be 'f'.
>
> alias f='find . -maxdepth -type f -name'
>
> now
> f "whatever"
> will only search the pwd.  This may not be exactly what you need, but
> maybe it gets you a step closer.
>
> ...John
>
> On Sun, Jul 31, 2011 at 11:52 PM, David Tomaschik
> <david at systemoverlord.com> wrote:
>> On 07/31/2011 10:18 PM, Narahari 'n' Savitha wrote:
>>> Friends:
>>>
>>> I use find command a lot these days and each time I have to type find
>>> $(pwd) -name "whatever" -print
>>>
>>> I want to just  type find . -name "whatever" -print and it should do
>>> find $(pwd).  Any idea how to overwrite the find function.
>>>
>>> -Narahari
>>>
>>
>> Why aren't you doing find . -name "whatever"?  find . and find $(pwd)
>> are equivalent, as . means the current working directory.
>>
>> David
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>



More information about the Ale mailing list