Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"xargs" is basically what you're thinking of as "map", and "find" is more powerful than simple globbing.

    find . -type f -name \*.mp3 -print0 | xargs -n 1 -0 some_command


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: