Bash Snipets
Skočit na navigaci
Skočit na vyhledávání
Get all video files in dir recursive
find . -regextype posix-extended -regex '.*\.(avi|mkv|flv|mov|mpg|wmv|mp4|m4v|rm)' -exec realpath {} + | sort
Convert subtitles from Win-1250 to UTF8
ls *.srt | while read a; do iconv -f WINDOWS-1250 -t UTF-8 "$a" > temp; mv temp "$a"; done;