scripts/rename_movie_by_title.sh

4 lines
132 B
Bash
Raw Normal View History

2020-07-30 13:44:20 +00:00
#!/usr/bin/env bash
[[ -z $1 ]] && echo 'Need a filename.' && exit
exec mv $1 $(mediainfo $1 | grep Title | head -n1 | cut -d: -f2)