This shows you the differences between two versions of the page.
— |
kurs:find_music.sh [2014/09/10 21:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <code> | ||
+ | #!/usr/bin/bash | ||
+ | |||
+ | praefix='mp3'; | ||
+ | tmpdir='/tmp'; | ||
+ | tmpfile='find_music_temp'.$$ | ||
+ | full_tmpfile=$tmpdir/$tmpfile | ||
+ | pwd=`pwd` | ||
+ | |||
+ | find $1 -type f -iname \*.$praefix -print > $full_tmpfile; | ||
+ | |||
+ | </code> | ||