Tag Archives: bash

Sed – Renaming with Linux [Part 2]

Some time ago I wrote an article about renaming multiple filenames [1]. Now it happened I needed to rename several subtitles for Star Trek Enterprise because, I’m using a self-made mplayer-wrapper script to load subtitles automatically. Therefor the subtitle filename, usually a Sub Rip Text (.srt) file from tvsubtitles have to be in a form like S01E01 or 1x24.

The two according lines in my mplayer-vdpau wrapper script, which I use in My Media System (MMS) looks like this: Continue reading