Answer the question
In order to leave comments, you need to log in
Why is the variable after the regular expression empty?
I want to cut /img_test/f15/ from here /home/admin/web/ovcvs4ds.fvds.ru/public_html/img_test/f15/f1578e58f50e5d4cb081c10a827eac71.png in this way
FINALFOLDER=$(find $CURRENT_IMAGE -regextype posix-extended -regex '\/img_test\/.*\/')
echo "$FINALFOLDER"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question