[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Option immediately followed by a number
From: |
uzibalqa |
Subject: |
Option immediately followed by a number |
Date: |
Sun, 19 Mar 2023 19:07:46 +0000 |
I want to match a string composed of "-n" immediately followed by a number.
Meaning at least one number after "-n".
For instance "-n8", "-n21", "-n34"
How can I make a glob pattern that matches the above description that I can use
with the case statement?
case $opt in
("-n") do-this ;;
esac
- Option immediately followed by a number,
uzibalqa <=