Skip to Content.
Sympa Menu

baslinux - Re: [BL] how do you move files to/from your local net ?

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] how do you move files to/from your local net ?
  • Date: Tue, 4 Dec 2007 11:20:51 +0100 (CET)

Nice script, thank you Steven. I'll put it to good use soon.

--
Czerno

Steven wrote :

> echo '<HTML>' > index.html
> echo '<BODY>' >> index.html
> echo '<TABLE>' >> index.html
> for i in *; do
> pre=`ls -dl $i | cut -c1`
> case $pre in
> d) pre=""
> name=$i' ==>' ;;
> *) pre=`ls -dsh $i |sed 's/^ *//' |cut -d" " -f1`
> name=$i ;;
> esac
> echo '<TR>' >> index.html
> echo '<TD>'$pre >> index.html
> echo '<TD><A HREF="'$i'">'$name'</A><BR>' >> index.html
> done
> echo '</TABLE>' >> index.html
> echo '</BODY>' >> index.html
> echo '</HTML>' >> index.html
>






_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail




Archive powered by MHonArc 2.6.24.

Top of Page