printf.1 (50477) | printf.1 (51090) |
---|---|
1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)printf.1 8.1 (Berkeley) 6/6/93 | 1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)printf.1 8.1 (Berkeley) 6/6/93 |
36.\" $FreeBSD: head/usr.bin/printf/printf.1 50477 1999-08-28 01:08:13Z peter $ | 36.\" $FreeBSD: head/usr.bin/printf/printf.1 51090 1999-09-08 15:40:46Z sheldonh $ |
37.\" 38.Dd June 6, 1993 39.Dt PRINTF 1 40.Os 41.Sh NAME 42.Nm printf 43.Nd formatted output 44.Sh SYNOPSIS --- 200 unchanged lines hidden (view full) --- 245precision is 0 or missing, all characters in the string are printed. 246.It Cm \&% 247Print a `%'; no argument is used. 248.El 249.Pp 250In no case does a non-existent or small field width cause truncation of 251a field; padding takes place only if the specified field width exceeds 252the actual width. | 37.\" 38.Dd June 6, 1993 39.Dt PRINTF 1 40.Os 41.Sh NAME 42.Nm printf 43.Nd formatted output 44.Sh SYNOPSIS --- 200 unchanged lines hidden (view full) --- 245precision is 0 or missing, all characters in the string are printed. 246.It Cm \&% 247Print a `%'; no argument is used. 248.El 249.Pp 250In no case does a non-existent or small field width cause truncation of 251a field; padding takes place only if the specified field width exceeds 252the actual width. |
253.Pp 254Some shells may provide a builtin 255.Nm 256command which is similar or identical to this utility. Consult 257the 258.Xr builtin 1 259manual page. |
|
253.Sh RETURN VALUES 254.Nm Printf 255exits 0 on success, 1 on failure. 256.Sh SEE ALSO | 260.Sh RETURN VALUES 261.Nm Printf 262exits 0 on success, 1 on failure. 263.Sh SEE ALSO |
257.Xr printf 3 | 264.Xr builtin 1 , 265.Xr csh 1 , 266.Xr printf 3 , 267.Xr sh 1 |
258.Sh HISTORY 259The 260.Nm 261command appeared in 262.Bx 4.3 Reno . 263It is modeled 264after the standard library function, 265.Xr printf 3 . 266.Sh BUGS 267Since the floating point numbers are translated from 268.Tn ASCII 269to floating-point and 270then back again, floating-point precision may be lost. 271.Pp 272.Tn ANSI 273hexadecimal character constants were deliberately not provided. | 268.Sh HISTORY 269The 270.Nm 271command appeared in 272.Bx 4.3 Reno . 273It is modeled 274after the standard library function, 275.Xr printf 3 . 276.Sh BUGS 277Since the floating point numbers are translated from 278.Tn ASCII 279to floating-point and 280then back again, floating-point precision may be lost. 281.Pp 282.Tn ANSI 283hexadecimal character constants were deliberately not provided. |