Using bash with code samples