خرید بک لینک

I have a bash script where $DIR is a directory name that may contain spaces.

This:

rm "$DIR/*.MOV"

gives the error "No such file or directory". There is no file literally named "*.MOV"; I want the * to expand into multiple arguments - one per matching filename.

Eg:

rm some folder/foo.MOV some folder/bar.MOV

How can I do this?

برچسب: نویسنده: استخدام کار تاريخ: شنبه 29 اسفند 1394 ساعت: 17:51

صفحه بندی