1

bash or sh

view story
linux-howto

http://www.unix.com – I am some new to the programming world but starting to get hang of it. My question is,what shell should I use bash or sh (Ubuntu uses dash for sh) Is the one faster, users more memory etc? Example scripts Code: #1 for I in {1..10}; do echo $I; done #2 for I in 1 2 3 4 5 6 7 8 9 10; do echo $I; done #3 for I in $(seq 1 10); do echo $I; done #4 for ((I=1; I <= 10 ; I++)); do echo $I; done #5 for ((I=1; I <= 29 ; I++)); do echo `printf "node%02d\n" $I`; done #1, #4 and #5 does not work in sh/dash all works in bash So what to do?? (I found (HowTos)