Skip to content
Advertisement

bash script version of forfiles

I’m currently converting a DOS batch script to a shell script and while I have 99% of it working, one part I cannot figure out how to convert over.

In the batch file, I have a line that looks like

JavaScript

How would I write that for a shell script?

Advertisement

Answer

Try this, this will delete files without prompting

JavaScript

To be prompted before files are deleted, try the variation of above

JavaScript

NOTE: I have used the Linux variant of the path t:jeopardy

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement