We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Get used to always have SheBang#!/bin/bash as the first line of the script.
Bash ususally is installed. If not try ksh, it is very similar.
If you want to write compatible script, use dash from Debian and use SheBang #!/bin/sh. But beware, many external programs are a bit different, for example on OS-X.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Looping and Skipping
You are viewing a single comment's thread. Return to all comments →
Get used to always have SheBang
#!/bin/bash
as the first line of the script.Bash ususally is installed. If not try
ksh
, it is very similar.If you want to write compatible script, use
dash
from Debian and use SheBang#!/bin/sh
. But beware, many external programs are a bit different, for example on OS-X.