asmcmd find-command not behaving as expected
For a migrationprogress I want to run asmcmd from the commandline with -p.
The following in a shell-script works like a charm (Oracle 11gr2):
asmcd <<EOT
find --type DATAFILE +DG/db *
EOT
Outputted to a txt-file I get
ASMCMD> +DG/db/datafile/SYSTEM.312.1231232
+DG/db/datafile/SYSAUX.321.34423423
etc.
Now I would like to run;
asmcmd -p find --type DATAFILE +DG/db *
but then it prompts with :
usage: find [--type type] dir pattern
help: help find
I can't figure out what's wrong. As
asmcmd -p ls +DG
works well, so it seems it hasn't anything to do with using backslashes before specialcharacters. I also tried