[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] OT: to you script-heros...
- Subject: Re: [cobalt-users] OT: to you script-heros...
- From: Dmitry Alexeyev <dmitry@xxxxxxxxxxxxxxxxx>
- Date: Wed Mar 31 13:41:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
> 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 ,
;-)