On Mon, Jun 13, 2011 at 12:45 PM, Josh Paetzel <[email protected]> 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'
___
$
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to