code formatter for shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting code formatter for shell script
# 1  
Old 02-18-2009
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
# 2  
Old 02-18-2009

GNU emacs
# 3  
Old 02-18-2009
If you've got the Ruby interpreter installed, * Bash Script Beautifier works pretty well (works for all sh-compatible shells)
# 4  
Old 02-18-2009
i use version emacs 22.2.1 but i didn't find an item for formatting code
# 5  
Old 02-18-2009
Ruby interpreter looks good , i tested it and shell code formatting looks good
# 6  
Old 02-18-2009
Quote:
Originally Posted by bora99
i use version emacs 22.2.1 but i didn't find an item for formatting code

C-M-\ runs the command indent-region
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatter

Hi, I have been searching for a tool or online URL to format (beautify) UNIX shell script without any luck. Could you please assist any online link or tool to format UNIX shell script. I've couple of legacy scripts needs to be formatted. Thank you in advance. Regards, Pointers (4 Replies)
Discussion started by: pointers1234
4 Replies

2. Shell Programming and Scripting

How to capture the exit code of a shell script in a perl script.?

hi, i want to pop up an alert box using perl script. my requirement is. i am using a html page which calls a perl script. this perl script calls a shell script.. after the shell script ends its execution, i am using exit 0 to terminate the shell script successfully and exit 1 to terminate the... (3 Replies)
Discussion started by: Little
3 Replies

3. Shell Programming and Scripting

Help with Shell script code

Hello all, I am in a middle of an assignment and i would appreciate any help. How can i write a bash shell script code that checks if all elements in an array are the same numbers. I mean -->array = ( 0,0,0,0,0 ) ( e.g., if then return "OK' fi ) Thank you in advance, (9 Replies)
Discussion started by: Geekie
9 Replies

4. Shell Programming and Scripting

File/string formatter script?

Hi all, I have a config file that contains some text as below: server01 :/u01/app/oracle/admin/db01/adump :*.dmp,5 :compress :/bin/gzip server01 :/u01/app/oracle/admin/db04/adump :*.aud,5 :remove :/bin/rm server01 ... (4 Replies)
Discussion started by: newbie_01
4 Replies

5. Programming

Script shell in java code

Hello, Please i want to insert this code in a java program because i need to call a java function inside the while: Please how can i do? thank you so much (9 Replies)
Discussion started by: chercheur857
9 Replies

6. Programming

Script Shell in java code

Hello, This is my script shell: echo Mon premier script echo Liste des fichiers : ls -la exit 0 This is my code java: public class test { public static void main(String args) { try { Process process = Runtime.getRuntime().exec("sh script1.sh"); } catch... (2 Replies)
Discussion started by: chercheur857
2 Replies

7. Shell Programming and Scripting

Insert C code in shell script

Hi, Anybody know on how to insert C code in shell script. I am writing BLOB data to a database table in C but I don't know on how to insert the C code in shell script. Thanks in advance. (1 Reply)
Discussion started by: badbunny9316
1 Replies

8. Shell Programming and Scripting

Unix Formatter

HI all, Is their any UNIX shell script code formatter that work on windows ? If so where can I get it ? I want to format the shell scripts in with proper indentation etc... Thanks...In Advance (0 Replies)
Discussion started by: dhananjaysk
0 Replies
Login or Register to Ask a Question