[ale] windoze scripts to linux scripts

Geoffrey Myers lists at serioustechnology.com
Fri May 27 13:59:24 EDT 2011


I still don't understand what is wrong with a simple find:

find $DIR -print

Clean, and easy.  No different the the OP's windows solution.

James Sumners wrote:
> Here's a bash script you can use without having to install any extra
> packages. Note that 1) it is slow and 2) you run it like so:
> `listpath.sh .`
> 
> #!/bin/bash
> 
> IFS=$'\n'
> 
> for f in $(find ${1} -type f); do
>     DIR=$(dirname $(readlink -f ${f}))
>     NAME=$(basename ${f})
> 
>     echo "${DIR}/${NAME}"
> done
> 
> On Fri, May 27, 2011 at 12:23 PM, Michael Trausch <mike at trausch.us> wrote:
>> find . -print0 | xargs -0 realpath
>>
>> You might have to install the realpath package.
> 
> 


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson


More information about the Ale mailing list