Page 1 of 1

Is there an EasyOS equivalent to Detox? (Solved)

Posted: Fri Jun 21, 2024 9:43 pm
by HarveyH

Detox is a lovely command for fixing files with names#%20%like%20%this____%20##wtf%__.txt so they can be copied to Windows without Windows gagging on them. Is there an EasyOS version or could somebody tell me how to make one please and thank you?

https://linux.die.net/man/1/detox


Re: Running Detox under EasyOS

Posted: Sun Jun 23, 2024 2:01 pm
by Caramel
HarveyH wrote: Fri Jun 21, 2024 9:43 pm

Detox is a lovely command for fixing files with names#%20%like%20%this____%20##wtf%__.txt so they can be copied to Windows without Windows gagging on them. Is there an EasyOS version or could somebody tell me how to make one please and thank you?

https://linux.die.net/man/1/detox

Here is a pet from an unofficial package for the Slackware distro (https://slackers.it/repository/slackwar ... 64-1cf.txz)

detox-2.0.0.pet
(137.02 KiB) Downloaded 28 times

It do not change the %20 by default. Maybe with the use of a "sequence" (see the man page). I did not find a way


Re: Running Detox under EasyOS

Posted: Sun Jun 23, 2024 10:58 pm
by HarveyH

That filename with the %20 in it was just a made-up example. I could have said, "a filename containing garbage that Windows can't handle".
Anyway thanks. "detox -r -v /files/downloads" cleans up the stuff just fine.

People, detox is a great tool. Not only does it clean out garbage, but it also fixes multiple underlines in filenames. Even if all you use is Linux, it's still useful for cleaning up junky filenames and making your folders look nicer.