sed.1 (42676968c61286235a3bef4553cd8f1f2f29ce57) sed.1 (06e482e60a60643b7d60549870f45c6ba6c4c7a8)
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

--- 409 unchanged lines hidden (view full) ---

418A line can be split by substituting a newline character into it.
419To specify a newline character in the replacement string, precede it with
420a backslash.
421.Pp
422The value of
423.Em flags
424in the substitute function is zero or more of the following:
425.Bl -tag -width "XXXXXX" -offset indent
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

--- 409 unchanged lines hidden (view full) ---

418A line can be split by substituting a newline character into it.
419To specify a newline character in the replacement string, precede it with
420a backslash.
421.Pp
422The value of
423.Em flags
424in the substitute function is zero or more of the following:
425.Bl -tag -width "XXXXXX" -offset indent
426.It Em N
426.It Ar N
427Make the substitution only for the
427Make the substitution only for the
428.Em N Ns 'th
428.Ar N Ns 'th
429occurrence of the regular expression in the pattern space.
430.It g
431Make the substitution for all non-overlapping matches of the
432regular expression, not just the first one.
433.It p
434Write the pattern space to standard output if a replacement was made.
435If the replacement string is identical to that which it replaces, it
436is still considered to have been a replacement.

--- 64 unchanged lines hidden (view full) ---

501.Dq #n ,
502the default output is suppressed.
503This is the same as specifying the
504.Fl n
505option on the command line.
506.El
507.Sh ENVIRONMENT
508The
429occurrence of the regular expression in the pattern space.
430.It g
431Make the substitution for all non-overlapping matches of the
432regular expression, not just the first one.
433.It p
434Write the pattern space to standard output if a replacement was made.
435If the replacement string is identical to that which it replaces, it
436is still considered to have been a replacement.

--- 64 unchanged lines hidden (view full) ---

501.Dq #n ,
502the default output is suppressed.
503This is the same as specifying the
504.Fl n
505option on the command line.
506.El
507.Sh ENVIRONMENT
508The
509.Ev COLUMNS ,
510.Ev LANG ,
511.Ev LC_ALL ,
512.Ev LC_CTYPE
509.Ev COLUMNS , LANG , LC_ALL , LC_CTYPE
513and
514.Ev LC_COLLATE
515environment variables affect the execution of
516.Nm
517as described in
518.Xr environ 7 .
519.Sh DIAGNOSTICS
520.Ex -std

--- 23 unchanged lines hidden ---
510and
511.Ev LC_COLLATE
512environment variables affect the execution of
513.Nm
514as described in
515.Xr environ 7 .
516.Sh DIAGNOSTICS
517.Ex -std

--- 23 unchanged lines hidden ---