Jump to content

Easy way to delete all files with extension X


skank

Recommended Posts

From the bash shell

 

find /mnt/user/ -type f -name *.nfo

 

Then you can add an exec part to remove it. I havent included that cause im not sure i can recall it accurately from memory.

 

Lol easy way

 

Bash shell?

 

 

So telnet in with puty ?

Then put in that command

what do you mean add exec part

Link to comment

Telnet or ssh into unraid

at the command prompt

root@Tower:~# 

 

Run this command first to see what will be deleted:

find /mnt/user -type f -name '*.nfo' | more

 

Run this command to finalize

find /mnt/user -type f -name '*.nfo' -exec rm -f -v '{}' \;

 

Warning: This will attempt to delete all .nfo files from your entire Array (the -v tells you what the files were and -f ignores any possible read-only permissions)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...