Tips for golfing in Bash
Undocumented, but works in every version I've run into for legacy sh backwards compatibility:

for loops allow you to use { } instead of do done.  E.g. replace:



for i in {1..10};do echo $i; done


with:

for i in {1..10};{ echo $i;}