Originally Published: Thursday, 6 September 2001 Author: ZoRt!
Published to: tuneup_tips/Tips Page: 1/1 - [Printable]

CrAzY FilE NaMes!

Sick of unzip making files with seemingly random letters?
Tired of entering long, erratical named files?
well either run unzip as such....

unzip -L filename.zip

or dump the following into a file, named fixfiles.sh

#!/bin/sh
for x in *; do
        y=`echo $x | tr '[A-Z]' '[a-z]'`
        if [ $x != $y ]; then
              
...