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

I use this template to deal with reasonable filenames:

    find ... -print0|parallel --gnu -X -0 -n 1 your_command "{}" \;
And sometimes the names are so screwed that they have to be renamed first, then this can give you a reasonable new name

    $(echo $(basename "{}")|tr '[[:blank:]]' '_'| tr -cd '\/.[[:alnum:]]_-' )


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

Search: