Apple computing Imported From Epistula

Bash one-liner of the day

Mirage:~/Data/CD aquarion$ find . -name *.m4p
| sed -e"s/m4p/mp3/g"
| while read FOO;do BAR=$(basename "$FOO");locate "$BAR" | tail -1; done
| while read FOO ; do cp $FOO .;done

Okay, so I need to do the rm *.m4p afterwards, but still.

So, question one, what does it do, and question two, what is it for?