Monday, December 28, 2020

How to solve "find: paths must precede expression:" Error


How to solve Error " find: paths must precede expression" ?



[oracle@xxxx]$ find /dbbackupdrive/XXXXX/export_bkp/ -name *.dmp -mtime -1 -exec ls -lrt {} \;


find: paths must precede expression: expdp_full_db_bkp_Wed23Dec2020.dmp

Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]

[oracle@xxxx]$

[oracle@xxxx]$

[oracle@xxxx]$

[oracle@xxxx]$ find /dbbackupdrive/XXXXX/export_bkp/ -name '*.dmp' -mtime -1 -exec ls -lrt {} \;


-rw-r-----. 1 oracle oinstall 6074507264 Dec 28 10:50 /dbbackupdrive/XXXXX/export_bkp/dumpfile_full_XXXXX_20201228.dmp

-rw-r-----. 1 oracle oinstall 6074507264 Dec 28 12:41 /dbbackupdrive/XXXXX/export_bkp/bkp/dumpfile_full_XXXXX_20201228.dmp

[oracle@xxxx]$

[oracle@xxxx]$

3 comments: