Mass conversion using Casetta

You may have a lot of Casio file in an old and dirty file format. Casetta may help you, by using little scripts.

Using a Bash script

(For GNU/Linux, *BSD, MacOS X, and other POSIX systems.)

Make a bash script, named - by example - legacy2newcat.sh, with this content:

#! /bin/bash
 
# Convert all file from command line parameters in the newcat format
# Dependency: casetta >= 0.2.0
 
casetta_cmd='casetta'
output_ext='newcat'
 
for casio_file
do
    new_name="$(echo $casio_file | sed -e 's/\.[^.]\+//').$output_ext";
    $casetta_cmd -n "$casio_file" "$new_name";
done

You can change the two variables, casetta_cmd (to choice your casetta command, usually “casetta”), and output_ext (to choice the extension of output files, and so their format).

To use this script, go (in command line) in the directory where are the files you want to convert. Next, run the command:

/path/of/the/script/legacy2newcat.sh *.FXI

(Remember to take care of the case!)

 

Powered by PHP Valid XHTML 1.0 strict Valid CSS Driven by DokuWiki

The content of this website is, without another mention, under the GNU Free Documentation License.