Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145213760
D9958.id26175.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9958.id26175.diff
View Options
Index: etc/defaults/rc.conf
===================================================================
--- etc/defaults/rc.conf
+++ etc/defaults/rc.conf
@@ -95,6 +95,7 @@
fsck_y_flags="" # Additional flags for fsck -y
background_fsck="YES" # Attempt to run fsck in the background where possible.
background_fsck_delay="60" # Time to wait (seconds) before starting the fsck.
+growfs_enable="NO" # Set to YES to attempt to grow the root filesystem on boot
netfs_types="nfs:NFS smbfs:SMB" # Net filesystems.
extra_netfs_types="NO" # List of network extra filesystem types for delayed
# mount at startup (or NO).
Index: share/man/man5/rc.conf.5
===================================================================
--- share/man/man5/rc.conf.5
+++ share/man/man5/rc.conf.5
@@ -2001,6 +2001,11 @@
.Pp
to
.Pa /etc/crontab .
+.It Va growfs_enable
+.Pq Vt bool
+If set to
+.Dq Li YES ,
+attempt to grow the root file system.
.It Va netfs_types
.Pq Vt str
List of file system types that are network-based.
Index: usr.bin/sed/sed.1
===================================================================
--- usr.bin/sed/sed.1
+++ usr.bin/sed/sed.1
@@ -31,7 +31,7 @@
.\" @(#)sed.1 8.2 (Berkeley) 12/30/93
.\" $FreeBSD$
.\"
-.Dd May 10, 2016
+.Dd March 09, 2017
.Dt SED 1
.Os
.Sh NAME
@@ -586,6 +586,32 @@
.Xr environ 7 .
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+Replace
+.Ql bar
+with
+.Ql baz
+when piped from another command:
+.Bd -literal -offset indent
+echo "An alternate word, like bar, is sometimes used in examples." | sed 's/bar/baz/'
+.Ed
+.Pp
+Using a different separator can be handy when working with paths:
+.Bd -literal -offset indent
+echo "/dev/da1" | sed 's#da1#ada1#'
+.Ed
+.Pp
+Replace all occurances of
+.Ql foo
+with
+.QL bar
+in the file
+.Pa test.txt ,
+without creating a backup of the file:
+.Bd -literal -offset indent
+sed -i '' -e 's/foo/bar/' test.txt
+.Ed
+.Pp
.Sh SEE ALSO
.Xr awk 1 ,
.Xr ed 1 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 18, 4:30 AM (12 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28837059
Default Alt Text
D9958.id26175.diff (1 KB)
Attached To
Mode
D9958: Add some examples to sed(1)
Attached
Detach File
Event Timeline
Log In to Comment