code formatter for shell script

hello,

do anybody know a program to format a shell script code ?

i tried "editrocket.com" but this product doesn't format a shell script code.

i searched for programs but can't find a shell script code formatter.

i have to change a shell script and the style of code is .....

regards

GNU emacs

If you've got the Ruby interpreter installed, * Bash Script Beautifier works pretty well (works for all sh-compatible shells)

i use version emacs 22.2.1 but i didn't find an item for formatting code

Ruby interpreter looks good , i tested it and shell code formatting looks good

C-M-\ runs the command indent-region