Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Need assistance with looping

$
0
0
Hi,

I have a find command that searches for all the .properties under current directory and its subdirectories.
Code:

find . -name "*.properties"
I would like to pass the output of the above find command to my "operation.sh script as the second parameter.

for eg:
./operation.sh 775 [results of the above find command one by one]

So if the above find command returned 7 properties files the operations.sh should run 7 times taking each result as the second input.

Can you please suggest how can I ?

Viewing all articles
Browse latest Browse all 16232

Trending Articles