[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Bash Scripting Question



On Sat, 2005-04-09 at 10:58 +0200, Almut Behrens wrote:
> On Sat, Apr 09, 2005 at 01:23:19AM -0500, Alex Malinovich wrote:
> > > > On Apr 9, 2005 1:17 AM, Hal Vaughan <hal@thresholddigital.com> wrote:
> > > > > to show a way to print out the full path name for EACH file or
> > > > > directory in a recursive listing?
> > 
> > find . -printf "`pwd`/%P\n"
> 
> also, find will do exactly what you want, if you give it an _absolute_
> path to start with, e.g.
> 
> find /etc
> 
> to get a recursive full-path listing of all files under /etc.
> Or, more generally, instead of 'find .':
> 
> find $PWD

Grrrr.  No other OS would even think about using a command named
"find" to *list* files in a directory.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"What's the use of sending a $2 million missile into a $10 tent
to hit a camel in the butt?"
George W. Bush

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: