Skip to main content
9 events
when toggle format what by license comment
May 11, 2024 at 13:36 history edited Jeff Schaller CC BY-SA 4.0
Missing word
Oct 30, 2019 at 17:00 comment added user232326 For booleans (0 or 1) A and B, the usual solution is case $A$B in 11) .... . Simpler.
Oct 29, 2019 at 16:25 comment added Stéphane Chazelas Note that zsh had ;| (also supported by mksh) before (2007) bash added ;;& (2009) for the same thing (;& itself comes from ksh88e, added to zsh in 1997 and bash in 2009).
Oct 29, 2019 at 14:54 history edited Jeff Schaller CC BY-SA 4.0
added nocasematch to the bash portion -- thanks to glenn jackman!
Oct 28, 2019 at 18:51 comment added smc Thanks @jeff-schaller for the explanation, also I have corrected my question after George pointed out about the incorrect placement of "words begins/ends with" part.
Oct 28, 2019 at 18:48 vote accept smc
Oct 28, 2019 at 18:48 vote accept smc
Oct 28, 2019 at 18:48
Oct 28, 2019 at 18:15 comment added George Vasiliou I was preparing a similar answer using ;;& but i was late! +1 for the nice answer :-) You can also fake a kind of and using something like [0-9]*);;&*[0-9]) echo "word begins and ends with number";;
Oct 28, 2019 at 18:13 history answered Jeff Schaller CC BY-SA 4.0