escaping - Is it properly quoted when I using '*' or '**/*' in bash? -


find -name '*.jpg' -print0 | xargs -0 qiv

qiv **/*.jpg

both safely escaped , delivered qiv?

yes. in first case, find expanding wildcard internally, , delivering results xargs expects them. in second, shell expanding them , passing each match separate argument. both correct (assuming shell support **, , command line length maximum isn't exceeded).


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -