bash: use a pattern to get all files at once -
i have script takes argument list of files analyze. can number of files.
$ ./myscript file1 file2 ... filen now, have run on large number files (~30) paths can exploited pattern. find can find them 1 one , apply script on each of them, want take them , run script on of them @ once.
how should go this?
find ... -exec ./myscript {} + this might result in more 1 call myscript if there many matches (i.e. command line gets long), there little avoid multiple calls in case anyway (short of passing pattern parameter myscript , pattern-matching internally).
Comments
Post a Comment