pikashu <inputfile> <outputfile>
or
pikashu <inputfile> <formats>
or
pikashu <inputfile> <prefix> <formats>
This will read the <inputfile> and convert it to <outputfile>.
If the <outputfile> has a recognisable extension (e.g. .xyz or .cfg) then pikashu
will convert it to the corresponding format.
Instead of specifying an output file name, one can also specify one or several <format> among those supported by pikashu
. The program will then use the input file name and replace its extension with the one appropriate for each <format>.
If a <prefix> (i.e. a file name with no extension) and one or several <formats> are specified, then the program will use the prefix to produce all the output files according to the <formats>.
If you want to convert all the files in a directory, do NOT use a star (for instance pikashu * cfg
to convert all files to CFG), because this will not be recognized. I recommend that you create a file list (for instance ls * >list.lst
), and then run pikashu in File list mode.
pikashu mysystem.gin example.cfg
This will convert the file mysystem.gin
into example.cfg
.
pikashu example.cfg mysystem.gin
Same as previous example, assuming the file mysystem.gin
exists and example.cfg
does not. The program recognizes which file exists, and which file has to be created. If both files already exist, you will be prompted which one to use as an input file.
pikashu mysystem.gin cfg xsf
This will convert the file mysystem.gin
into mysystem.cfg
and mysystem.xsf
.
pikashu mysystem.gin new_system cfg xsf
This example uses a prefix (new_system
) and several output formats. It will convert the file mysystem.gin
into new_system.cfg
and new_system.xsf
.
pikashu xsf new_system cfg mysystem.gin
Same as previous example. Note that command-line parameters can be specified in any order.