bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better shell_quote() function for included shellquote.awk


From: J Naman
Subject: Re: Better shell_quote() function for included shellquote.awk
Date: Sat, 26 Aug 2023 13:27:54 -0400

Aside: Alternatives to long lists of case 'x': might be:
case /(a|b|f|n|r|t|v|x|u|0|1|2|3|4|5|6|7)/:
case /[abfnrtvxu01234567]/:

I use case /CD[-]ROM/: on occasion and a complicated regexp for dates
with a lot "|" ors:
case
/(([0]?[1-9])|([1][012]))[-\/](([0]?[1-9])|([12][0-9])|([3][01])))[-\/](([12]?[0-9]){4})|([0-9]{2}))/:
# date handling here ...
Hope this is not too far off topic.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]