- Note that when you use if statement in your script, spaces before and after [ and ] are required, otherwise bash cannot recognize [ and ].
introduction to bash programming part 1
introduction to bash programming part 2
introduction to bash programming part 1
introduction to bash programming part 2