How to execute shell script in bash.exe in windows?
Answers
Answered by
0
Steps to write and execute a script
Open the terminal. Go to the directory where you want to create your script.Create a file with .sh extension.Write the script in the file using an editor.Make the script executable with command chmod +x <fileName>.Run the script using ./<fileName>.
Open the terminal. Go to the directory where you want to create your script.Create a file with .sh extension.Write the script in the file using an editor.Make the script executable with command chmod +x <fileName>.Run the script using ./<fileName>.
Similar questions