@ojs yeah, I wondered whether "bash" meant "ksh" or "/bin/sh" or Actual Bash. For portable, there's also #awk ๐
@zimpenfish
I can recommend awk (or gawk = GNU awk) for such a task.
Curious which words (>3 letters) in your system dictionary have all the letters in alphabetical order? Sate your curiosity with a little #awk:
$ awk 'length>3 && /^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*$/' /usr/share/dict/words
Optionally sort they by length:
$ awk 'length>3 && /^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*$/{print length, $0}' /usr/share/dict/words | sort -n
give me "billowy" and "beefily" as words of interest. If you don't like duplicates, use "?" instead of "*"
$ awk 'length>3 && /^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?$/{print length, $0}' /usr/share/dict/words | sort -n
which gives "almost", "biopsy", and "chintz" as nice long runs.
ํฐ๋ฏธ๋ ์คํ์ ์ฒซ ํ๋ฉด์ ์ปค์คํ ํด๋ณด์

WSL2 ํ๊ฒฝ์์ C ๋๋ผ์ด๋ธ์ ๊ฐ์ ์ฃผ์ ๋์คํฌ์ ์ฌ์ฉ๋์ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌํ๊ธฐ ์ํด ํฐ๋ฏธ๋ ์ ์ ์๋ง๋ค ์ํ๋ฅผ ์๊ฐํํด ๋ณด์ฌ์ฃผ๋ ์๋ํ ๋์๋ณด๋ ๊ตฌ์ถ ๊ณผ์ ์ ๋ค๋ฃน๋๋ค. ๋ฆฌ๋ ์ค์ df ๋ช ๋ น์ด๋ฅผ awk ์คํฌ๋ฆฝํธ๋ก ์ ์ฒ๋ฆฌํ์ฌ ๋ฐ์ดํฐ๋ฅผ ์ถ์ถํ๊ณ , ์ด๋ฅผ ๊ฒฝ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ธ SQLite์ ์ ์ฅํ์ฌ ์ผ๋ณ ์ฌ์ฉ๋ ์ถ์ด๋ฅผ ๊ธฐ๋กํ๋ ์ฒด๊ณ๋ฅผ ๋ง๋ จํฉ๋๋ค. ๋ฐ์ดํฐ ๊ธฐ๋ก์ ์ํ ์ ธ ์คํฌ๋ฆฝํธ๋ฅผ ์์ฑํ ๋ค, ์ ์ฅ๋ ์ ๋ณด๋ฅผ ๋ฐํ์ผ๋ก ํฐ๋ฏธ๋์์ ๋ง๋๊ทธ๋ํ ํํ์ ๋ฐ ํ๋กฏ(bar plot)์ ์ถ๋ ฅํ๋ ๋์๋ณด๋ ๊ธฐ๋ฅ์ ๊ตฌํํฉ๋๋ค. ๋ง์ง๋ง์ผ๋ก ~/.bashrc ์ค์ ์ ํตํด ํฐ๋ฏธ๋์ ์ด ๋๋ง๋ค ์๋์ผ๋ก ์ต์ ๋์คํฌ ์ํ๋ฅผ ๊ธฐ๋กํ๊ณ ํ์ธํ ์ ์๋๋ก ์๋ํํจ์ผ๋ก์จ, ๋ถํ์ํ ํ์ผ ์ ๋ฆฌ ์์ ์ ์ง๊ด์ ์ผ๋ก ํ์ ํ๊ณ ์์คํ ์์์ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌํ ์ ์๋ ํ๊ฒฝ์ ์ ๊ณตํฉ๋๋ค.
RE: https://genart.social/@davidcarew/116178444886600923
I absolutely agree with @davidcarew about usefulness of #sed and #awk.
I am starting to dabble with #xsltproc for some #XML aware bulk modification.
I used #XSLT to convert an XML file into #wget commands to download additional XML files I needed for a project. (First file listed the base name of additional files, each in an element / node.)
New AWKzine Issue (#2) is posted. It's a Hexdump clone implemented in #gawk (#awk).
https://maplefish.com/todd/hexdump.html
(issues: https://maplefish.com/todd)
@autobrain Pitz: vocรช รฉ um dos pilares do Fediverso BR. O criador do bot que me colocou no pรณdio. O gestor de crises que talvez nem imagine quanta crise sua existรชncia resolve (a minha inclusive). Salve, mestre! ๐งก
#autobrain #Apresentaรงรฃo #FediversoBR #BatataFrita #TecnologiaRetrรด #BaralhoCigano #AWK #NaData #Autismo #GestรฃoDeCrises