linux - bash script version of forfiles -


i'm converting dos batch script shell script , while have 99% of working, 1 part cannot figure out how convert over.

in batch file, have line looks like

forfiles -p "t:\jeopardy" -s -m *.* /d -3 /c "cmd /c del @path" 

how write shell script?

try this, delete files without prompting

find /jeopardy -mtime 3 -name "*.*" -exec rm -f {} \; 

to prompted before files deleted, try variation of above

find /jeopardy -mtime 3 -name "*.*" -exec rm -i {} \; 

note: have used linux variant of path t:\jeopardy


Comments