> On 18 Feb 2018, at 08:21, tu...@posteo.de wrote:
> 
> when downloading files from non-UNIX sites, they often contain
> "poisonoys" characters like '#', ' ', ''' or that alike.
> 
> With the tool 'detox' those filenames could be fixed.
> 
> But detox changes the time stamp of the files, which 
> filenames are altered (not all files, which are examined).
> 
> Is there a way to either get detox not to alter the time stamp 

I think:

  tmpfile=/tmp/foo-$RANDOM
  touch -r "$file" "$tmpfile"
  detox "$file" 
  touch -r "$tmpfile "$file"
  rm "$tmpfile"

It should be trivial to patch detox to do this itself.

Stroller



Reply via email to