Code beautifier


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Code beautifier
# 1  
Old 03-10-2012
Code beautifier

Is there any code beautifier available for unix shell scripts ,?
So that the code can be formatted well .
Thanks
# 2  
Old 03-29-2012
I have no knowledge of such a tool for shell scripts. You can try to see if some of the available tools for other languages are working for you, such as indent (gnu) or astyle. Personally I use a custom made script, consisting of lots of sed statements to format code.
# 3  
Old 03-29-2012
Hi.

See * Bash Script Beautifier (Ruby)

Also Google is your friend for tidy, beautify, pretty-print, etc.

Best wishes ... cheers, drl
# 4  
Old 03-30-2012
Come to think of it, even on this site alone you will find a healthy collection of resources.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Linux

Go to a line of code , skip few lines of code

Hi , I have a code where i am using a infinite while loop . some thing like below while do if then #go to line 20 fi command 1; command 2; #line 20: sleep 34; (5 Replies)
Discussion started by: Paarth
5 Replies

2. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

3. UNIX for Dummies Questions & Answers

If ‘922’ Code does not exist on ‘03’ Record, ‘901’ Code will be there instead, move ‘03’ R

01,011600033,011600033,110516,0834,2,90,,2/ 02,011600033,011103093,1,110317,0834,,2/ 03,105581,,015,+00000416418,,,901,+00000000148,,,922,+000000 00354,,/ 03,113806,,015,+00000559618,,,901,+00000000096,,,922,+000000 00621,,/ 88,902,+0000000025218,,/... (1 Reply)
Discussion started by: sgoud
1 Replies

4. Shell Programming and Scripting

translate ksh code to csh code

hi all, Can any 1 help me translate this korn shell code to C shell code : email=$(grep "^$1" $folder/config_2.txt | awk '{print $2'}) In config_2.txt the content is : which mean in korn shell , $1=groupname and $2=email address. Now i need to write in C shell script,when i set the... (2 Replies)
Discussion started by: proghack
2 Replies

5. Programming

how i prepare a c++ code(c code) for implementing my own protocol format

helo my protocol format is given below { destno,mode,no.of packet,pktsize,,pktno,textsize,CRC} description:- { is starting flag destno - 4bytes mode - 1 byte no.of pkt - 4byes pktsize - 6 bytes ... (1 Reply)
Discussion started by: amitpansuria
1 Replies

6. Programming

Code Beautifier

Holla, I have a very big project (about 150 files, and more lines) written by several ppl. I am looking for a utility/program that will reformat the code to default or parametrized indentation format. I tried the 'cb' of unix, it didn't do well. I tried 'cbvan' but it had more flaws that I... (1 Reply)
Discussion started by: sierra_aar
1 Replies
Login or Register to Ask a Question