3 ms·
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 scre
by flatfilefan 9y ago
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:]]_-' )