Find a script in subdirectories and execute the script along with the pathshell Script: Sorting files into...

What dice to use in a game that revolves around triangles?

Can radiation block all wireless communications?

Does this website provide consistent translation into Wookiee?

Is there an idiom that means "revealing a secret unintentionally"?

Why doesn't Dany protect her dragons better?

How do I minimise waste on a flight?

What is the Ancient One's mistake?

Can the president of the United States be guilty of insider trading?

How to start your Starctaft II games vs AI immediatly?

What is the oldest instrument ever?

How do I politely tell my players to shut up about their backstory?

Company stopped paying my salary. What are my options?

How long can fsck take on a 30 TB volume?

How to avoid making self and former employee look bad when reporting on fixing former employee's work?

Why doesn't increasing the temperature of something like wood or paper set them on fire?

Using mean length and mean weight to calculate mean BMI?

I'm attempting to understand my 401k match and how much I need to contribute to maximize the match

Two (probably) equal real numbers which are not proved to be equal?

Do oversize pulley wheels increase derailleur capacity?

Where do 5 or more U.S. counties meet in a single point?

What computer port is this?

why it is 2>&1 and not 2>>&1 to append to a log file

My Sixteen Friendly Students

Was Mohammed the most popular first name for boys born in Berlin in 2018?



Find a script in subdirectories and execute the script along with the path


shell Script: Sorting files into directories and subdirectoriesScript to Recognize HDDs and run SmartctlService script calls another script with variablesChange path in sql script with sedHow to change directory from script without calling the script with . ./script, or exit the script when calling . ./script.shFind | parallel executing script with path from find + other argumentsHow to execute a shell script from anywhere on my server?Optimize find -exec {} with multiple conditions : specific files in a dir and specific subdirectories in this dirHow to execute a find command using a set of strings from a line in a text fileGive default path for id_rsa in a shell script






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-1















I have a script called service.sh in many subdirectories under /app/user



/app/user/new1/service.sh
/app/user/new2/new3/service.sh
/app/user/new4/new5/new6/service.sh



My objective is to find all this service.sh and execute the service.sh which is unique along with subdirectory path and argument stop,start for each service.sh script.



for eg
/app/user/new1/service.sh stop
/app/user/new1/service.sh start



Can anyone please help?










share|improve this question









New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What do you mean when you say “unique”?

    – Scott
    1 hour ago


















-1















I have a script called service.sh in many subdirectories under /app/user



/app/user/new1/service.sh
/app/user/new2/new3/service.sh
/app/user/new4/new5/new6/service.sh



My objective is to find all this service.sh and execute the service.sh which is unique along with subdirectory path and argument stop,start for each service.sh script.



for eg
/app/user/new1/service.sh stop
/app/user/new1/service.sh start



Can anyone please help?










share|improve this question









New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What do you mean when you say “unique”?

    – Scott
    1 hour ago














-1












-1








-1








I have a script called service.sh in many subdirectories under /app/user



/app/user/new1/service.sh
/app/user/new2/new3/service.sh
/app/user/new4/new5/new6/service.sh



My objective is to find all this service.sh and execute the service.sh which is unique along with subdirectory path and argument stop,start for each service.sh script.



for eg
/app/user/new1/service.sh stop
/app/user/new1/service.sh start



Can anyone please help?










share|improve this question









New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a script called service.sh in many subdirectories under /app/user



/app/user/new1/service.sh
/app/user/new2/new3/service.sh
/app/user/new4/new5/new6/service.sh



My objective is to find all this service.sh and execute the service.sh which is unique along with subdirectory path and argument stop,start for each service.sh script.



for eg
/app/user/new1/service.sh stop
/app/user/new1/service.sh start



Can anyone please help?







shell-script






share|improve this question









New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 2 hours ago







venkata kumaresan













New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 2 hours ago









venkata kumaresanvenkata kumaresan

11




11




New contributor



venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




venkata kumaresan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • What do you mean when you say “unique”?

    – Scott
    1 hour ago



















  • What do you mean when you say “unique”?

    – Scott
    1 hour ago

















What do you mean when you say “unique”?

– Scott
1 hour ago





What do you mean when you say “unique”?

– Scott
1 hour ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






venkata kumaresan is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517686%2ffind-a-script-in-subdirectories-and-execute-the-script-along-with-the-path%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








venkata kumaresan is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















venkata kumaresan is a new contributor. Be nice, and check out our Code of Conduct.













venkata kumaresan is a new contributor. Be nice, and check out our Code of Conduct.












venkata kumaresan is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517686%2ffind-a-script-in-subdirectories-and-execute-the-script-along-with-the-path%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...