linux - Ubuntu 13.04: Find files ending in -
can please tell me how i'm misusing find?
i want find files in directory end in .config.
$:~/esrc$ find . -type f ./t.config ./util/ebin/config.beam ./util/ebin/gen_spec.beam ./util/etc/util.config ./util/etc/v.config ./util/src/config.erl ./util/src/gen_spec.erl ./util/src/v.config ./util/u.config
my first thought use find . -type f -name *.config
unfortunately that's finding file in root directory.
$:~/esrc$ find . -type f -name *.config ./t.config
the same command work find *.erl files though...
$:~/esrc$ find . -type f -name *.erl ./util/src/config.erl ./util/src/gen_spec.erl
any clue why works *.erl not *.config?
thanks.
quote wild-card, i.e.
find . -type f -name '*.config'
Comments
Post a Comment