У вас есть функция, определенная таким образом в первой оболочке:
alias(){ builtin alias ; }
псевдоним типа
должен подтвердить эту гипотезу.
cp /path/src/*.{gif,jpg} /path/dest
Информация о подстановочных знаках и шаблонах подстановки .
В частности:
{ } (curly brackets)
terms are separated by commas and each term must be the name of something or a wildcard. This wildcard will copy anything that matches either wildcard(s), or exact name(s) (an “or” relationship, one or the other).
For example, this would be valid:
cp {*.doc,*.pdf} ~
This will copy anything ending with.doc or.pdf to the users home directory. Note that spaces are not allowed after the commas (or anywhere else).
Циклы for отлично подходят для таких вещей.
Пример :Скопируйте все файлы.py и.ipynb из текущего каталога в каталог с именем dst/
for file in *.py *.ipynb; do cp $file /dst/; done