JavaCC Template to generate Mediaflux asset path











Java: parse octal number from string and format string to represent octal number








        int mode = Integer.parseInt("0644", 8);
        System.out.println(String.format("%04o", mode));



Split large file and assemble the parts








split -b 256mb large-file.tgz large-file.tgz.
cat large-file.tgz.* > /path/to/output/large-file.tgz