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

Re: [OT] Regex in Bash-Skript



Moin,

* Philipp Meier wrote (2004-10-06 10:41):
>echo "$1" | grep -qe'^[0-9]+' || (
>	echo "Invalid parameter: $1" 1>2
>	exit 1
>)

Da fehlt noch:
    cat 2


Thorsten
-- 
Getting a thrill out of some stupid quote is a sign of idiocy.
    - turmeric

Attachment: pgpCgOjk98wvI.pgp
Description: PGP signature


Reply to: