Folding for shell script