#!/bin/bash # # media lib/sorting tool # # **** config section **** mediapath="/home/david/Videos" workingdir="/home/david/Documents/code/scripts" # **** requirements **** #locate (for search feature) # **** scanning mediapath **** scan() { ls -RAhbl $mediapath | grep -v ^total | grep -v ^d > $workingdir/scan.txt } scan exit 0 title=the_wire cat=series lang=en_ge subs=en container=avi vcodec=h264 acodec= nr=0401