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

Re: OT: Bash Scripting Question



On Apr 9, 2005 1:17 AM, Hal Vaughan <hal@thresholddigital.com> wrote:
> I could swear I remember doing this in the past, but I can't remember how, and
> I hope it wasn't through a recursive script.
> 
> I've gone through the man and info pages on ls, but I can't find anything
> (unless I missed the obvious, which has been known to happen before) to use
> to show a way to print out the full path name for EACH file or directory in a
> recursive listing?
> 
> Thanks!


FILES=`ls`
PWD=`pwd`

for FILE in $FILES; 
do
   echo $PWD/$FILE;
done


hth.

-- 
~ Darryl  ~ smartssa@gmail.com
http://smartssa.com / http://darrylclarke.com
International Clean Your Windows Day - April 22, 2005
http://pileofcrap.org/news/2096/



Reply to: