lhoffmeyer
November 10th, 2009, 01:24 AM
Hey all,
I have an external HD with music. I wish to find all directories that
have been modified in the last 30 days. I then want to play the files
in each of the directories, sorted by file name and not date modified
using mplayer.
So, to get the list of directories I use this command. Where would
I go from here to sort the files by name and play in mplayer?
I only want to play *.flac or *.mp3 files.
$find . -type d -mtime -30 -exec ls -d {} \;
TIA,
Lance
I have an external HD with music. I wish to find all directories that
have been modified in the last 30 days. I then want to play the files
in each of the directories, sorted by file name and not date modified
using mplayer.
So, to get the list of directories I use this command. Where would
I go from here to sort the files by name and play in mplayer?
I only want to play *.flac or *.mp3 files.
$find . -type d -mtime -30 -exec ls -d {} \;
TIA,
Lance