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 |
will try that ! Thanks a lot! |
33 |
|
34 |
Cheers! |
35 |
Meino |