As the title says: "Is there a number class in regex?" A "class" or
whatever it may be called.
regex has a class for ::word:: but I couldn't find one for digits.
(Or maybe I need new glasses?!)
It's not a big problem, it's efficient as it is written, but I would like to
compact the list of numbers in the following line:
Code: Select all
cd PupMenu
ls -Algo --file-type ./* | awk '{ print $NF }' | grep -E -v "^0|^1|^2|^3|^4|^5|^6|^7|^8|^9|~|^_|oris\/|ites\/" > ../aewm-menu.lst
Code: Select all
"^[0-9]|~|^_|oris\/|ites\/" > ../aewm-menu.lst
entries that come afterwards.
The full script is attached as a zip. The goal is to recreate an aemenu
from the wmx menu.
Thanks in advance for any pointers.
~~~~~~~~~~
PS -- Please don't mind the silly variable names and file names. I was
tired when I wrote the script.