fdservices
IS-IT--Management
Here's what I want to do:
set $prefix "ABC"
set $directory "/home/user"
set files [lsort -dictionary [glob -directory "$directory" -tails -type f "${prefix}[0-9]+-*.pdf"]]}]
where
"${prefix}[0-9]+-*.pdf" is "ABC" + any sequence of numeric characters + "-" + any sequence of characters + ".pdf"
needless to say I can't make it work. Can anyone help me?
Andrew
set $prefix "ABC"
set $directory "/home/user"
set files [lsort -dictionary [glob -directory "$directory" -tails -type f "${prefix}[0-9]+-*.pdf"]]}]
where
"${prefix}[0-9]+-*.pdf" is "ABC" + any sequence of numeric characters + "-" + any sequence of characters + ".pdf"
needless to say I can't make it work. Can anyone help me?
Andrew