Bash Shortcuts

^a Go to start of line
^e Go to end of line
^k Delete from cursor to end of line
^u Delete from cursor to start of line
^w Delete from cursor to start of word
Alt+d Delete from cursor to end of word
^y Paste whatever was deleted last

Converting Satellite Transport Stream (*.ts) to MKV

Convert all files using ffmpeg while keeping all streams (video/audio/subtitles):

for f in *.ts; do ffmpeg -i "$f" -c copy -map 0:v -map 0:a -map 0:s "$f".mkv; done

This prevents any conversion and thus keeps the quality at the source level. Quotes are required to work correctly with filenames containing spaces.