I think you could do that with GNU indent.
http://www.gnu.org/software/indent/indent.html

Laurent Mirguet

[EMAIL PROTECTED] wrote:
> I'm looking for a script for doing batch indentation.
> I have hundreds of java files in my development tree.
> So what I want to do is
> 
> foreach file in `find . -name "*.java"`
>      open $file
>      indent $file
>      save $file
>      close $file
> end foreach
> 
> This should be running overnight unattended.
> 
> Any suggestions?
> 
> Thank you in advance.
> David Ostrovsky
> 
> PS. Unfortunatelly I didn't find any mode/style, which indent correct the
> JSP files.
> 
> 
> 
> 
> 


Reply via email to