<p>Add the realpath command in the mix and you'll get just that.<br></p>
<p>--<br>
Sent from my phone... a G2 running CM7 nightlies!</p>
<div class="gmail_quote">On Aug 2, 2011 10:49 PM, "Narahari &apos;n&apos; Savitha" <<a href="mailto:savithari@gmail.com">savithari@gmail.com</a>> wrote:<br type="attribution">> If I use find . t hen I wont get the full path in the output it provides.<br>
> <br>> If I do a find in the home folder.<br>> <br>> If I do find . -name a.txt -print I see<br>> ./a/b/c/d/a.txt<br>> If I do f $(pwd) -name a.txt -print<br>> /home/coolguy/a/b/c/d/a.txt<br>> <br>
> See that /home/coolguy, it is important. for me.<br>> <br>> -Narahari<br>> On Mon, Aug 1, 2011 at 8:44 AM, John Pilman <<a href="mailto:jcpilman@gmail.com">jcpilman@gmail.com</a>> wrote:<br>> <br>>> Oops, I left out the maxdepth specification:<br>
>><br>>> alias f='find . -maxdepth 1 -type f -name'<br>>><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">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">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">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">http://mail.ale.org/mailman/listinfo</a><br>
>><br></div>