1 |
On 02/18 11:38, Stroller wrote: |
2 |
> |
3 |
> > On 18 Feb 2018, at 08:21, tuxic@××××××.de wrote: |
4 |
> > |
5 |
> > when downloading files from non-UNIX sites, they often contain |
6 |
> > "poisonoys" characters like '#', ' ', ''' or that alike. |
7 |
> > |
8 |
> > With the tool 'detox' those filenames could be fixed. |
9 |
> > |
10 |
> > But detox changes the time stamp of the files, which |
11 |
> > filenames are altered (not all files, which are examined). |
12 |
> > |
13 |
> > Is there a way to either get detox not to alter the time stamp |
14 |
> |
15 |
> I think: |
16 |
> |
17 |
> tmpfile=/tmp/foo-$RANDOM |
18 |
> touch -r "$file" "$tmpfile" |
19 |
> detox "$file" |
20 |
> touch -r "$tmpfile "$file" |
21 |
> rm "$tmpfile" |
22 |
> |
23 |
> It should be trivial to patch detox to do this itself. |
24 |
> |
25 |
> Stroller |
26 |
> |
27 |
> |
28 |
> |
29 |
|
30 |
Hi Stroller, |
31 |
|
32 |
this seems to be an egg<->chicken problem. |
33 |
|
34 |
I like to wrap detox with a script, which will do you magic trick. |
35 |
Since I want to get rid of those evil characters (...) in the filename, |
36 |
which normally intercept shell processing, I want to use detox, |
37 |
which in turn will be called by a shell script in turn, to do the |
38 |
time machine magic. To do so, I need detox, to sanitize the |
39 |
filenames from the evil characters, which normally intercept..... |
40 |
.....stack overflow....recursion depth failure.....process killed. |
41 |
|
42 |
You know.... |
43 |
|
44 |
I am using zsh... |
45 |
|
46 |
Any idea to get a chicken OR an egg instead of an scrambled egg with |
47 |
feathers??? ;) |
48 |
|
49 |
Cheers |
50 |
Meino |