osx yosemite - 'find' with wildcard -
i on os/x yosemite. have performed similar searches following many times: uncertain why not work here.
the search is:
$find . -name \*assembly\*.jar
it returns nothing.
now, should return? let remove extension , re-run search:
$find . -name \*assembly\*
well returns number of items - including first 1 .. ends .jar !
./mllib-tests/target/mllib-perf-tests-assembly.jar ./mllib-tests/target/streams/$global/assembly ./mllib-tests/target/streams/$global/assembly/$global/streams/assembly-inputs ./mllib-tests/target/streams/$global/assembly/$global/streams/assembly-outputs ./mllib-tests/target/streams/$global/assemblyoption ./mllib-tests/target/streams/$global/assemblyoption/$global/streams/assembly ./spark-tests/target/spark-perf-tests-assembly.jar ./spark-tests/target/streams/$global/assembly ./spark-tests/target/streams/$global/assembly/$global/streams/assembly-inputs ./spark-tests/target/streams/$global/assembly/$global/streams/assembly-outputs ./spark-tests/target/streams/$global/assemblyoption ./spark-tests/target/streams/$global/assemblyoption/$global/streams/assembly
so .. why first search failing?
ok discovered answer.
\*
wildcard not zero or more characters match. apparently one or more characters match.
the following does work
$find . -name \*assembl\*.jar ./mllib-tests/target/mllib-perf-tests-assembly.jar ./spark-tests/target/spark-perf-tests-assembly.jar
Comments
Post a Comment