Misc

Misc notes.

Remove Accent Characters From Subtitle File

The method below can be used to convert any accent characters to "?" in a text file. This method can be used to strip accent characters from a subtitle file. The purpose for this is some muxing programs such as dvdauthor will error out when finding these characters.

The method below just converts them to "?". But you can write the results out to a different file then diff against the original to figure out where the characters are then manually convert them if you like.

iconv -f CP437 -t ASCII//TRANSLIT <original file>.srt > <new file>.srt

Simple Command To Copy Filesystems

This will copy a file system from the "/source/dir" to the "/destination/dir".

Note: The source directory can also be / and it will copy correctly.

cd /source/dir
tar -cf - . | ( cd /destination/dir ; tar -xpvf - )
Syndicate content