From owner-freebsd-questions Tue Jun 11 23: 2:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lexx.zssm.zp.ua (lexx.zssm.zp.ua [212.8.32.8]) by hub.freebsd.org (Postfix) with ESMTP id 5784837B40D for ; Tue, 11 Jun 2002 23:02:10 -0700 (PDT) Received: from server.hermes-comp.zp.ua (germes-comp.zssm.zp.ua [212.8.32.132] (may be forged)) by lexx.zssm.zp.ua (8.9.2/8.9.2) with ESMTP id IAA16877; Wed, 12 Jun 2002 08:56:19 +0300 (EET DST) Received: from localhost (localhost [127.0.0.1]) by server.hermes-comp.zp.ua (Postfix) with ESMTP id 5A83438302; Wed, 12 Jun 2002 08:52:07 +0300 (EEST) Date: Wed, 12 Jun 2002 08:52:07 +0300 (EEST) From: Alexander V Zubchenko To: Jacob Rhoden Cc: Subject: Re: OT: Javascript source code formatting In-Reply-To: <5.1.1.6.0.20020612152823.00b88f00@wheresmymailserver.com> Message-ID: <20020612084451.V92282-100000@server.hermes-comp.zp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings! On Wed, 12 Jun 2002, Jacob Rhoden wrote: > Hi, > > I have two rather large javascript files which are almost identical > (someone has formatted and put different spacing in one of them) there has > been a minor change to the source, but I cannot find it with diff (due to > the different formatting). What You mean under formatting (just indentation or something more, like capitals in variable name or so)? > > Do you know any program which may help me format it? I have searched > freebsd.org/ports and couldnt find anything useful . . . any ideas? This is program You already have and it is called UNIX. Try to cat(1) your files through sed(1) to eliminate all whitespaces on lines beginning and then through tr(1) to change all letters to lower-case. Then diff must work. > > Thanks, > Jacob > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > [Orgn] UNIX - exciting tool to make an elephant from a fly. Alexander V Zubchenko, E-Mail: stalker@hermes-comp.zp.ua System Administrator, WWW: http://www.hermes-comp.zp.ua/ Hermes-comp, Ukraine, Zaporizhzhya, Geroev Stalingrada 50 phone/fax: +380 612 64-19-72 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message