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

Re: OT: Bash Scripting Question

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


Reply to: