Re: [fossil-users] test-comment-format utf8
Thus said Stephan Beal on Thu, 15 Jun 2017 09:55:11 +0200: > Sidebar: i had no idea bash can do ranges like that! I usually use jot: $ echo $(jot -w '%c' 26 a) a b c d e f g h i j k l m n o p q r s t u v w x y z $ echo $(jot -w '%c' 26 a | sort -r) z y x w v u t s r q p o n m l k j i h g f e d c b a $ echo $(jot -w '%c' 26 A) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Andy -- TAI64 timestamp: 400059449a86 ___ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] test-comment-format utf8
On Jun 15, 2017, at 1:55 AM, Stephan Beal wrote: > > i had no idea bash can do ranges like that! [snip] > That would have saved me lots of typing in the past :/. When on a system without Bash or when writing a script that must be portable to such systems, thereβs seq(1) if you only want numbers. Unlike Bash sequences, seq(1) can do floating-point sequences, but Bash can do letter sequences which seq(1) cannot. ___ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] test-comment-format utf8
On Thu, Jun 15, 2017 at 8:14 AM, wrote:
> $ ./fossil test-comment-format --legacy "legacy " $(printf "π%.0s"
> {1..100})
>
Sidebar: i had no idea bash can do ranges like that!
[stephan@host:~]$ echo {1..10}
1 2 3 4 5 6 7 8 9 10
It also works with ascii letters:
[stephan@host:~]$ echo {a..z}
a b c d e f g h i j k l m n o p q r s t u v w x y z
and in reverse:
[stephan@host:~]$ echo {Z..A}
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
:-D
That would have saved me lots of typing in the past :/.
(fwiw, i do know about the ab{c,d,e} construct)
--
- stephan beal
http://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] test-comment-format utf8
$ ./fossil test-comment-format --legacy "legacy " $(printf "π%.0s" {1..100})
legacy ππβ
Β Β βββπβ
Β Β ββπβ
Β Β βππ
Β Β ππβ
Β Β βββ
(6 lines output)
$ ./fossil test-comment-format "Β Β " $(printf "π%.0s" {1..100})
Β Β β
Β Β βββπππβ
Β Β ββ
Β Β β
Β Β βββππ
(5 lines output)
___
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

