substr(): the argument 'n' is optional, document what happens if it's omitted

fix order of OFS and ORS in variable list
This commit is contained in:
jdolecek 2001-02-04 20:47:50 +00:00
parent d15ae688ce
commit d6b3e4b6cb
1 changed files with 14 additions and 10 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: awk.1,v 1.2 2001/01/30 21:05:12 jdolecek Exp $
.\" $NetBSD: awk.1,v 1.3 2001/02/04 20:47:50 jdolecek Exp $
.\"
.\" Copyright (C) Lucent Technologies 1997
.\" All Rights Reserved
@ -364,14 +364,18 @@ If
is not given,
.Va $0
is used.
.It Fn substr s m n
the
.It Fn substr s m [n]
Returns the at most
.Ar n -character
substring of
.Ar s
that begins at position
.Ar m
counted from 1.
starting at position
.Ar m ,
counted from 1. If
.Ar n
is omitted, the rest of
.Ar s
is returned.
.It Fn tolower str
returns a copy of
.Ar str
@ -478,14 +482,14 @@ by option
number of fields in the current record
.It Va NR
ordinal number of the current record
.It Va OFS
output field separator (default blank)
.It Va ORS
output record separator (default newline)
.It Va OFMT
output format for numbers (default
.Qq "%.6g"
)
.It Va OFS
output field separator (default blank)
.It Va ORS
output record separator (default newline)
.It Va RS
input record separator (default newline)
.It Va SUBSEP