neil 2023-09-02 15:44:45 +08:00
parent b32d22731b
commit 8bdcd22486
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ fi
_egrep_o() {
if [ "$__USE_EGREP" ]; then
egrep -o "$1"
egrep -o -- "$1"
else
sed -n 's/.*\('"$1"'\).*/\1/p'
fi