Is there an EasyOS equivalent to Detox? (Solved)

Moderator: BarryK

Post Reply
HarveyH
Posts: 96
Joined: Wed Oct 18, 2023 8:40 pm
Been thanked: 21 times

Is there an EasyOS equivalent to Detox? (Solved)

Post 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

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Running Detox under EasyOS

Post 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 18 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

HarveyH
Posts: 96
Joined: Wed Oct 18, 2023 8:40 pm
Been thanked: 21 times

Re: Running Detox under EasyOS

Post 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.

Post Reply

Return to “EasyOS”