![](https://seccdn.libravatar.org/avatar/961cb91afb232ccfdad4fd8cabe8dd87.jpg?s=120&d=mm&r=g)
On Monday 19 September 2011 09:17:02 Per Jessen wrote:
Peter Nikolic wrote:
Hi .
This is slightly OT but not too bad i hope .
I have a numbver of .js files that are strung out in one huge line of text they are a real pain to do anything with and take an age to load and edit
Is there a way other than sitting ther and manually sorting the of doing it automatically ..
You could try something like this:
sed -e 's/{/\n{/' -e s'/}/}\n/'
(not sure if you need to escape the curly brackets).
Hi Per Thanks i will give it a whirl later see what happens on a copy of the file i have seen the online systems but the darn file takes so long to load into an editor or just do a less on that i cant C&P it across real pain . I have had the same problem with html files from this old club site built by website builder one huge long line of text terrible things. Pete . -- Powered by openSUSE 11.3 (x86_64) Kernel: 2.6.34.10-0.2-desktop KDE Development Platform: 4.6.00 (4.6.0) 14:32 up 15 days 20:02, 4 users, load average: 0.05, 0.04, 0.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org