[clug] Bash questions...

Brett Worth brett at worth.id.au
Sun May 1 05:12:16 MDT 2011


On 05/01/2011 11:39 AM, steve jenkin wrote:
> Yesterday I wanted a short bash construct to write a line of dashes to
> separate blocks of output, ie:
> Attempt 1:
>   steve$ for i in {1..20};do echo -n "-";done;echo

What about this one:

for i in {1..50}; do echo -e '\e(0q\e(B\c';done;echo

:-)

Brett
-- 

   /) _ _ _/_/ / / /  _ _//
  /_)/</= / / (_(_/()/< ///


More information about the linux mailing list