Это неправильно:
--exclude domains=www.website.de,www.website.it
Правильный путь:
--exclude-domains www.website.de,www.website.it
Из wget страницы справочника:
--exclude-domains domain-list Specify the domains that are not to be followed.
Аргумент команды в примере
echo **/*(AIE)
использует глобальный sntax zsh
;
Например, это не работает для bash
.
Символы в ()
являются квалификаторами glob; Несколько квалификаторов объединяются логическим И
, то есть все они не могут применяться.
Таким образом, приведенная выше команда показывает имена файлов, которые доступны для чтения, записи и выполнения для группы. У них есть разрешения, установленные chmod g + rwx
.
Более переносимый способ поиска файлов по разрешениям - использование -perm
теста find
,
например:
find -perm -g=rwx
Помимо работы независимо от оболочки, синтаксис также имеет тенденцию быть более читаемым.
Из man zshall
:
Glob Qualifiers
Patterns used for filename generation may end in a list of qualifiers
enclosed in parentheses. The qualifiers specify which filenames that other‐
wise match the given pattern will be inserted in the argument list.
If the option BARE_GLOB_QUAL is set, then a trailing set of parentheses con‐
taining no `|' or `(' characters (or `~' if it is special) is taken as a set
of glob qualifiers. A glob subexpression that would normally be taken as
glob qualifiers, for example `(^x)', can be forced to be treated as part of
the glob pattern by doubling the parentheses, in this case producing
`((^x))'.
If the option EXTENDED_GLOB is set, a different syntax for glob qualifiers
is available, namely `(#qx)' where x is any of the same glob qualifiers used
in the other format. The qualifiers must still appear at the end of the
pattern. However, with this syntax multiple glob qualifiers may be chained
together. They are treated as a logical AND of the individual sets of
flags. [...]
[ ... ]
A group-readable files (0040)
I group-writable files (0020)
E group-executable files (0010)
R world-readable files (0004)
W world-writable files (0002)
X world-executable files (0001)
См. man zshall | less '+ / Glob Qualifiers'
или pinfo zsh