#!/bin/bash if [ -f $1 ] then filename=$(basename “$1”) echo “Converting file…” dwebp “${filename%.*}”.webp -o “${filename%.*}”.png else echo “The file does not exist.” fi
Category: linux
linux, programming, routine
linux, mplayer, subfont.ttf, symbolic link, symlink
If you using MPlayer for the first time, you notice an error message where it says it cannot find subfont.ttf, to solve this problem you can either copy a truetype font to the ./mplayer directory and rename it to subfont.ttf, edit the mplayer configuration file with “font=” with the path to a particular font, or … Read More “subfont.ttf” »
downloading, linux, os/2, programming, rexx, scripting, wget
Recent news, I had to reinstall SUSE linux on my 64-bit PC. So this means I have to get my tools that I use often, including REXX scripts. Previously I used a REXX script for reading a text file and downloading a series of files based on a filter, such as files x001.jpg to x030.jpg. … Read More “Batch downloading with REXX and WGET” »
