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

Re: [cobalt-users] OT: to you script-heros...



>
> How about this (not quite tested) script?
>
> #!/bin/bash
> OLDDIR=`pwd`
> TARGET="$1"
> cd $TARGET
> comma="" ; for f in *; do echo -n "$comma$f"; comma=","; done
> cd $OLDDIR

ls | tr  \\n , 

;-)