sed.1 (0ef1d1f59c201fee80ddd568a3eb7f2ddd44e099) | sed.1 (dbb9d8f826d909bc6076d1047ddba753c29761b0) |
---|---|
1.\" Copyright (c) 1992, 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 --- 45 unchanged lines hidden (view full) --- 54.Sh DESCRIPTION 55The 56.Nm 57utility reads the specified files, or the standard input if no files 58are specified, modifying the input as specified by a list of commands. 59The input is then written to the standard output. 60.Pp 61A single command may be specified as the first argument to | 1.\" Copyright (c) 1992, 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 --- 45 unchanged lines hidden (view full) --- 54.Sh DESCRIPTION 55The 56.Nm 57utility reads the specified files, or the standard input if no files 58are specified, modifying the input as specified by a list of commands. 59The input is then written to the standard output. 60.Pp 61A single command may be specified as the first argument to |
62.Nm sed . | 62.Nm Ns . |
63Multiple commands may be specified by using the 64.Fl e 65or 66.Fl f 67options. 68All commands are applied to the input in the order they are specified 69regardless of their origin. 70.Pp --- 430 unchanged lines hidden (view full) --- 501and the remainder of the line are ignored (treated as a comment), with 502the single exception that if the first two characters in the file are 503.Dq #n , 504the default output is suppressed. 505This is the same as specifying the 506.Fl n 507option on the command line. 508.El | 63Multiple commands may be specified by using the 64.Fl e 65or 66.Fl f 67options. 68All commands are applied to the input in the order they are specified 69regardless of their origin. 70.Pp --- 430 unchanged lines hidden (view full) --- 501and the remainder of the line are ignored (treated as a comment), with 502the single exception that if the first two characters in the file are 503.Dq #n , 504the default output is suppressed. 505This is the same as specifying the 506.Fl n 507option on the command line. 508.El |
509.Pp | 509.Sh DIAGNOSTICS |
510The 511.Nm | 510The 511.Nm |
512utility exits 0 on success and >0 if an error occurs. | 512utility exits 0 on success, and >0 if an error occurs. |
513.Sh SEE ALSO 514.Xr awk 1 , 515.Xr ed 1 , 516.Xr grep 1 , 517.Xr regex 3 , 518.Xr re_format 7 519.Sh HISTORY 520A 521.Nm 522command appeared in 523.At v7 . 524.Sh STANDARDS 525The 526.Nm 527function is expected to be a superset of the 528.St -p1003.2 529specification. | 513.Sh SEE ALSO 514.Xr awk 1 , 515.Xr ed 1 , 516.Xr grep 1 , 517.Xr regex 3 , 518.Xr re_format 7 519.Sh HISTORY 520A 521.Nm 522command appeared in 523.At v7 . 524.Sh STANDARDS 525The 526.Nm 527function is expected to be a superset of the 528.St -p1003.2 529specification. |