Skip to content

v0.5.8

Compare
Choose a tag to compare
@ryuichiueda ryuichiueda released this 28 Jul 02:49
· 552 commits to main since this release

Supported sequence expressions

{1..10}, {a..z}, {1..10..2}, and {a..z..2} type sequence expressions. Here are some examples.

🍣 echo {1..10}
1 2 3 4 5 6 7 8 9 10
🍣 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 
🍣 echo {1..10..2}
1 3 5 7 9 
🍣 echo {a..z..2}
a c e g i k m o q s u w y 
 echo {3..-3..2}
3 1 -1 -3
### beyond bash ###
🍣 echo {πŸ›..🍦}
πŸ› 🍜 🍝 🍞 🍟 🍠 🍑 🍒 🍣 🍀 πŸ₯ 🍦 
🍣 echo {あ..お}
あ ぃ い ぅ う ぇ え ぉ お  
### beyond zsh ### 
🍣 echo {あ..お..2}
あ い う え お  

You can also use them as brace expansions like

🍣 echo {1..10..3}-th
1-th 4-th 7-th 10-th
🍣 echo {1..2}{1..2}
11 12 21 22