| Kood:		 | 	
		  | 			 SELECT tags.title, artist.name FROM tags INNER JOIN artist ON tags.artist = artist.id WHERE tags.title LIKE '%$search%' ORDER BY tags.title;			 		 | 	
 	  | Kood:		 | 	
		  | 			 
 
#!/bin/bash
 
IFS='
 
'
 
array=(`dcop amarok collection query "select tags.title, artist.name from tags inner join artist on tags.artist = artist.id where tags.title like '%$1%' order by tags.title;"`)
 
len=${#array[*]}
 
i=0
 
while [ $i -lt $len ]; do
 
    echo -n ${array[$i]}
 
    echo -n " ("
 
    echo -n ${array[$i+1]}
 
    echo ")"
 
    let i=i+2
 
done
 
			 		 | 	
 	  | Kood:		 | 	
		  | 			 
 
Walking Spanish (Tom Waits)
 
You'll Never Walk Alone (Johnny Cash)
 
			 		 |