> one can't easily work with files e.g. created by mktemp (which doesn't support templates like foo.XXXXXX.ending). Maybe you should try creating $(date +%s).flac, which is very probably unique.