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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -