<div>If I use find . t hen I wont get the full path in the output it provides.</div>
<div> </div>
<div>If I do a find in the home folder. </div>
<div> </div>
<div>If I do find . -name a.txt -print I see</div>
<div>./a/b/c/d/a.txt<br></div>
<div>If I do f $(pwd) -name a.txt -print</div>
<div>/home/coolguy/a/b/c/d/a.txt</div>
<div> </div>
<div>See that /home/coolguy, it is important. for me.</div>
<div> </div>
<div>-Narahari<br></div>
<div class="gmail_quote">On Mon, Aug 1, 2011 at 8:44 AM, John Pilman <span dir="ltr"><<a href="mailto:jcpilman@gmail.com">jcpilman@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Oops, I left out the maxdepth specification:<br><br>alias f='find . -maxdepth 1 -type f -name'<br>
<div>
<div></div>
<div class="h5"><br>On Mon, Aug 1, 2011 at 8:43 AM, John Pilman <<a href="mailto:jcpilman@gmail.com">jcpilman@gmail.com</a>> wrote:<br>> I usually avoid re-writing the common commands. Instead I pick a<br>> similar name. In this case it would be 'f'.<br>
><br>> alias f='find . -maxdepth -type f -name'<br>><br>> now<br>> f "whatever"<br>> will only search the pwd. This may not be exactly what you need, but<br>> maybe it gets you a step closer.<br>
><br>> ...John<br>><br>> On Sun, Jul 31, 2011 at 11:52 PM, David Tomaschik<br>> <<a href="mailto:david@systemoverlord.com">david@systemoverlord.com</a>> wrote:<br>>> On 07/31/2011 10:18 PM, Narahari 'n' Savitha wrote:<br>
>>> Friends:<br>>>><br>>>> I use find command a lot these days and each time I have to type find<br>>>> $(pwd) -name "whatever" -print<br>>>><br>>>> I want to just type find . -name "whatever" -print and it should do<br>
>>> find $(pwd). Any idea how to overwrite the find function.<br>>>><br>>>> -Narahari<br>>>><br>>><br>>> Why aren't you doing find . -name "whatever"? find . and find $(pwd)<br>
>> are equivalent, as . means the current working directory.<br>>><br>>> David<br>>> _______________________________________________<br>>> Ale mailing list<br>>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>><br>><br><br>_______________________________________________<br>Ale mailing list<br><a href="mailto:Ale@ale.org">Ale@ale.org</a><br><a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br><a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br></div></div></blockquote></div><br>