convert bash script to sh script?
Hi
I am working on a program that i should use sh type script, now i have bash script , so how can i change bash script to sh? i would appreciate if someone could help me to convert, the script is : PHP Code:
|
Code:
awk d=`date` -F"'" { . |
1) at first line, use "#!/bin/sh" instead of "#!/bin/bas
2) try to run your script, when error occurs, fix it. 3) can use "-x" option "#!/bin/sh -x", so can get more debug information 4) can man sh to get more help (sh = bash --posix) hope these information above are helpful for you. : ) |
very thanks
solved Quote:
|
Happy to hear the news.
: ) |
All times are GMT -5. The time now is 09:07 PM. |