all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* indentation in awk-mode
@ 2003-01-15 20:29 Jeffery B. Rancier
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffery B. Rancier @ 2003-01-15 20:29 UTC (permalink / raw)


I've searched the archives, but can't find what I'm looking for.  My
awk code is formatting like so:

BEGIN
{}
{
    if ( /^01PRICE/ )
    {
        print "Price Audit  :" " " $0
                }
    
    if ( NF == 3 )
    {
        print "Record has " NF " fields."
                }
}
END
{}

I'd rather have it look like:

BEGIN
{}
{
    if ( /^01PRICE/ )
    {
        print "Price Audit  :" " " $0
    }
    
    if ( NF == 3 )
    {
        print "Record has " NF " fields."
    }
}
END
{}

Any ideas?
-- 

Thanks,
Jeff
,----
| Jeffery B. Rancier
| 
| Softechnics
| a METTLER TOLEDO company
`----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: indentation in awk-mode
@ 2003-01-16  9:48 Victor Kirk
  0 siblings, 0 replies; 2+ messages in thread
From: Victor Kirk @ 2003-01-16  9:48 UTC (permalink / raw)


> I've searched the archives, but can't find what I'm looking for.  My
> awk code is formatting like so:

Try putting a semi-colon at the end of each statement and it should 
work as you require.

Vic
--

Victor Kirk
Analyst
Serco Integrated Transport

--
This message, including attachments, is intended only for the use by the
person(s) to whom it is addressed. It may contain information which is
privileged and confidential. Copying or use by anybody else is not
authorised. If you are not the intended recipient, please contact the sender
as soon as possible. The views expressed in this communication may not
necessarily be the views held by Serco Integrated Transport.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-16  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-15 20:29 indentation in awk-mode Jeffery B. Rancier
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16  9:48 Victor Kirk

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.