In Some Linux systems the full functionality of the sh or bash shell is not available.So to solve this we have to follow a few steps:
- open the .sh extension script file you are working with.
- find the clause #!/bin/sh. in most of the scripts its the very first line,
- just replace the #!/bin/sh with #!bin/bash.
- save the file and open the terminal window
- navigate to the directory where the file is present .
- now execute the command bash ./filename.sh
No comments:
Post a Comment