Site Tools


deuhc

# $EPIC: deuhc.txt,v 1.2 2006/07/26 19:47:17 sthalik Exp $

Synopsis:

$deuhc(<user@host>)

Technical:

This function removes a *! or *!*@ from the <user@host>, if it is present.

Practical:

It can be used as a quick way to get only the hostname from a full address argument.

Returns:

arguments without *! or *!*@ in front

Examples:

$deuhc(*!user@host)                       returns "user@host"
$deuhc(*!*@host)                          returns "host"
deuhc.txt · Last modified: 2006/07/28 04:10 by 127.0.0.1