detox - sanitize filenames
Hi folks
I'm stuck here with a little program I don't want to reverse-engineer. It's called DETOX. Links to the (few old) manpages: http://topics-of-interest.com/man1/detox (command and switches) http://topics-of-interest.com/man5/detoxrc (configs) Has anyone got it working (or a working copy of it)? I am stuck in applying modified translation-tables. The parser always falls back to it's internal tables BUT DOES parse the config-file (rc). Is there any other free (non-script) solution out there? Basically I want to sanitize a lot of files and as such a compiled program does a better job. Not to mention the tremendous opportunities this little program opens. :-) I reached already a point where I assume that the whole thing is whacked. Greets Gee |
almost 300 hits and counting
Almost 300 hits (okay a lot bots) and no reply?
I mistakenly thought I found the answer but I didn't. Does anyone have a clue how to configure the sequences/filters and/or modify/create new tables to get this working? Please consider this link too: http://topics-of-interest.com/man5/detox.tbl The main problem I have is, I can't translate minuses and commas into underscores. Which way ever I try to modify an existing or creating a new table (or modifying the configuration-file rc) I don't get any satisfying result. The only conversion done seems to be 'hard-coded' into the binary itself and if so I'd not like to dig into that because it's quite a big project with many weird naming-conventions in it's c-code (if ever the present code is legit). There must be an answer because this program/project is into the repositories of a few distros. Can't imagine that I am right with the consideration of the possibility that the project is whacked or somehow restricted (as it claims to be open source). Thanks for your consideration. |
Quote:
Code:
rename 'y/-,/__/' <filelist> |
solved
works as not expected.
totally misleading manpage. if you want to know more PM me. Greets Gee @ pan64: Thank's for the hint towards rename - I know the one-liner. But it's not even POSIX, it's perl if I remember right don't I? |
Quote:
|
Troll
@unSpawn:
troll woke up :-) always the same story with you folks. |
Quote:
also it has a project page: http://detox.sourceforge.net/ and compiles nicely on my system. |
Member Response
I think the command you posted is just very old and had limited exposure.
I also thought of the rename command, however what you're using clearly has more capabilities. If you feel it has worth to keep, why not try to find the source and make a newer version which suits your current day needs? |
time
Nice proposal and usually my reply should be much shorter because ... time
I took a look into it already yesterday. The whole project has more than 10000 lines of hard to read and old fashion structured c-code. The naming-convention the inventor choosed seems strange to me and my experience with C/Cpp. However, IT is a very wide topic and my interests in it are very widespread. You can see it reflected already in the Distros I use etcetera. However, the program is indeed very old, the manpage is misleading and the program has not the capabilities you and me assumed it had. You can of course alter the tables and the sequence of the filters and cleaners. But to back-engineer it is out of question to me. I am living in one of if not the country with the highest living-standard on earth. I can't effort that much time (any more). I leave that to some younger one in India or where ever. Topic closed for me. Thanks for your comments, I'm out. |
Member Response
May I suggest then that you mark the thread as Solved.
|
All times are GMT -5. The time now is 04:04 AM. |