operations on scalar variables in shell scripting