[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pipin'
On Wed, 26 Aug 1998, Charles J Menzes wrote:
> why is it that when I attempt:
> ls /home/mydir |email me@
>
> i get a slightly messed up output from the redirect?
> it ends up looking like this:
>
> ^[[0m^[[01;36maqua^[[0m
> ^[[01;34mbin^[[0m
> ^[[0mcisco.xls^[[0m
> ^[[0mdead.letter^[[0m
> ^[[01;34mmail^[[0m
> ^[[0mmbox^[[0m
> ^[[0mmims.uue^[[0m
> ^[[0mmims2.doc^[[0m
> ^[[0mph.list^[[0m
> ^[[0mphone.list^[[0m
> ^[[01;34mpublic_html^[[0m
> ^[[0mrecmendez.doc^[[0m
> ^[[01;34mresume^[[0m
> ^[[01;34mscriptlogs^[[0m
>
>
> rather than just giving me the list of dirs and docs like i would prefer?
You're using color ls, and it's screwed up. Try:
ls --color=none /my/dir | email-script
Color ls is supposed to figure out when to use color and when not to, but
it's obviously guessing wrong in this case.
--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.
- Follow-Ups:
- Re: pipin'
- From: Steven Pritchard <steve@silug.org>
- References:
- pipin'
- From: Charles J Menzes <charles@motion.net>