![]() DIRNAME = ` dirname $OLDFILE ` # Name of the. for OLDFILE in `find $SOURCEDIR -iname "*.rar" -printf "%p␜" ` do # Get the file name without the extension BASENAME = ` basename " $ " ` # Path for the file. # "-printf "%p␜" will cause the file names to be separated by the ␜ symbol, # rather than the default newline. cd $WORKDIR mkdir $TEMPDIR cd $TEMPDIR # Find all the. if test -z $1 thenĮcho "Using $SOURCEDIR " # Create an temporary directory to work in. This directory will be created under WORKDIR TEMPDIR = "rar2zip" # Run using "./rar2zip.sh /full/path/to/files/" # If no directory is specified, then use the current working directory ("."). ![]() WORKDIR = "/dev/shm/" # Set name for the temp dir. IFS = "␜" # Use RAM disk for temporary files. #!/bin/bash echo "Converting RARs to ZIPs" # Separate files using ␜.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |