Skip to content

Instantly share code, notes, and snippets.

Giovanni Tataranni gtataranni

Block or report user

Report or block gtataranni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gtataranni
gtataranni / findAndPlay.sh
Last active Jan 29, 2016
find the first closer match in your music folder and play it. The first word should be in the song filename, the others can be either in the filename or in the path, as for artist name
View findAndPlay.sh
#!/bin/bash
MUSIC_DIR="/media/Volume/Musica personale/"
find "$MUSIC_DIR" -iname "*$1*.mp3" -o -iname "*$1*.wma" -type f | while read line; do
good=1;
for arg in $@ ; do
if [ $good -eq 1 ]; then
echo $line | grep -i -q "$arg"
if [ $? -eq 1 ] ; then
You can’t perform that action at this time.