[clug] Bash questions...
Angus Gratton
gus at projectgus.com
Sun May 1 20:40:58 MDT 2011
On Sun, 2011-05-01 at 11:39 +1000, steve jenkin wrote:
> But without doing my usual, v. simple:
> echo "--------------------------------------------------" :-)
I realise this is something of a thought exercise, and that many
solutions have the tongue firmly in the cheek, but as I read it I keep
thinking of my favourite programming quote:
"Programs must be written for people to read, and only
incidentally for machines to execute."
— H. Abelson
and none of the alternatives really stacks up to the original in
readability. It's simply very, very obvious what echo "------------"
does. :)
Although, there's always:
alias horizontal_separator='echo "--------------------------------------------------"'
horizontal_separator
or
DASHES="--------------------------------------------------"
echo $DASHES
or, for the brevity-conscious
alias sep---='echo "--------------------------------------------------"'
sep---
;)
- Angus
More information about the linux
mailing list