svn commit: r223056 - head/etc/periodic/daily
Garrett Cooper
yanegomi at gmail.com
Mon Jun 13 20:15:45 UTC 2011
On Mon, Jun 13, 2011 at 12:45 PM, Josh Paetzel <jpaetzel at freebsd.org> wrote:
> Author: jpaetzel
> Date: Mon Jun 13 19:45:01 2011
> New Revision: 223056
> URL: http://svn.freebsd.org/changeset/base/223056
>
> Log:
> Convert the allowed characters '-', '.', and ':' in a ZFS pool name to _
> to avoid causing errors in the shell script.
This could be done like:
sed -E -e 's/[-\.:]/_/g'
to avoid the need for pipelining multiple tr calls. Example:
$ echo :-. | sed -E -e 's/[-\.:]/_/g'
___
$
More information about the svn-src-all
mailing list