Date: Tue, 21 Feb 2006 15:51:19 +0100 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: Kristian Vaaf <vaaf@broadpark.no> Cc: questions@freebsd.org Subject: Re: Cool listing script (needs a fix) Message-ID: <20060221155119.1dbfe2bd@localhost> In-Reply-To: <7.0.1.0.2.20060221153406.00ed12d8@broadpark.no> References: <7.0.1.0.2.20060221153406.00ed12d8@broadpark.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_pXWNsDMrQmSMeTFZGOADZ.P Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Kristian Vaaf <vaaf@broadpark.no> wrote: > When running this: >=20 > -- >=20 > #!/usr/local/bin/bash > # > # Print a structured file and folder list. > # $ARBA: tree.sh,v 1.0 2007/11/11 15:05:09 vaaf Exp $ > # > # Include files: -a, --all > # >=20 > argument=3D"-type d" >=20 > case $1 in -a | --all) argument=3D"" ;; esac >=20 > tree=3D's,^.$,, > /^$/d > s,[^/]*/\([^/]*\)$,+-----\1, > s,[^/]*/,| ,g' >=20 > pwd; find -s . $argument -print | sed -e "$tree" > How can I make the same script include an END notice? > # tree -a > /home/vaaf/usr > +-----commands.txt > +-----lyrics.txt > +-----people.txt > +-----public.txt > | > | END > Anybody know how? echo "|" echo "| END" Fabian --=20 http://www.fabiankeil.de/ --Sig_pXWNsDMrQmSMeTFZGOADZ.P Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD+yjsjV8GA4rMKUQRAtctAKDCRkGDXhtxrFtECHb2RMbTgbh/3ACeKxsh rJAnjc9lOnpVD+0PQulZt5s= =oSfG -----END PGP SIGNATURE----- --Sig_pXWNsDMrQmSMeTFZGOADZ.P--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060221155119.1dbfe2bd>