Skip to main content

Thread: problems with find command and variables in bash


ok, if run
code:
find . -path 'abc' -not -path '*xyz'
everything functions expect to.
if put after -not variable , run
code:
find . -path 'abc' $variable
it doesn't function properly.

here?

are there quotes around *xyz in variable value? not interpretted correctly shell if in variable's value. in other words, should assign variable this:
code:
variable='-not -path *xyz'
not this
code:
variable="-not -path '*xyz'"


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] problems with find command and variables in bash


Ubuntu

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???