I have always wondered why ls lacks a show_full_path flag. It has nearly everything else.<br><br><div class="gmail_quote">On Fri, May 27, 2011 at 11:39 AM, arxaaron <span dir="ltr"><<a href="mailto:arxaaron@gmail.com">arxaaron@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On 2011/05/26, at 16:16 , Geoffrey Myers wrote:<br>
<br>
> The Don Lachlan wrote:<br>
>> On Wed, May 25, 2011 at 05:55:43PM -0400, arxaaron wrote:<br>
>>> On 2011/05/25, at 15:54 , Narahari 'n' Savitha wrote:<br>
>>>> What I am looking for is In Windoze, I can do dir /s /b c:\bin and<br>
>>>> it will list all files with full path names<br>
>>>> c:\bin\putty.exe<br>
>>>> c:\bin\putty.cfg<br>
>>>> How do I do that Linux world ? I know you will tell me do find ~/<br>
>>>> bin -name "META-INF" -print<br>
>>>> but what I want is the full name of the file including the path.<br>
>>> The standard output of the find command IS the full<br>
>>> path name (starting at the root /)<br>
>>> On this machine, doing a find of type file on my<br>
>>> home directory:<br>
>>><br>
>>> find ~ -type f<br>
>>> yeilds:<br>
>>> /Users/arx/Sites/images/apache_pb.gif<br>
>><br>
>> Aaron,<br>
>><br>
>> That's because ~ expands to /Users/arx/ - "find -print" returns the<br>
>> path<br>
>> relative to whatever directory was specified. If you specify a local<br>
>> directory, it prints a local directory.<br>
>><br>
>> So you may solve his problem but it does not start at the root /.<br>
><br>
> find $(pwd) -print<br>
<br>
</div></div>I got hung up on this challenge and found that solution<br>
in my searches as well. Of course, the requisite for making<br>
that work is to cd into the target directory before listing<br>
it.<br>
<br>
Anyway, inside a script one should probably be specifying<br>
the full path to files/dirs (or cd to a known home base starting<br>
point) in order to avoid any ambiguity from relative run time<br>
environments.<br>
<br>
I still didn't find any single command or option combination<br>
for [find | ls | {etc}] that would list any arbitrary file with its<br>
full path. A trivial issue to address, but it's interesting that<br>
it doesn't seem to be in the standard tool chest. Wonder<br>
if having such would present a security issue?<br>
<br>
peace<br>
aaron<br>
<div><div></div><div class="h5"><br>
<br>
<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><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><br>As long as the general population is passive, apathetic, diverted to
consumerism or hatred of the vulnerable, then the powerful can do as
they please, and those who survive will be left to contemplate the
outcome.<br>- <i><i><i><i>2011 Noam Chomsky</i></i></i></i><br>