#!/bin/bash find . -name *.mp3 | while read filename do echo "$filename" # ... or any other command using $filename done