outgoing mail
V13
v13 at priest.com
Sun Mar 16 13:43:01 EET 2003
On Sunday 16 March 2003 02:42, Giorgos Keramidas wrote:
> On 2003-03-16 00:18, Kostas Peletidis <kpeletidis at yahoo.com> wrote:
> > Proswpika, xrhsimopoiw thn colrm gia na parw thn ip apo to parapanw
> > output. Dhladh:
> >
> > $ /sbin/ifconfig ppp0 | grep inet | awk '{print $2}' | colrm 1 5
> > 81.76.177.203
>
> - substr() mesa sto awk script.
> - pipe tou output sto cut -d: -f2
> - sed -e 's/^.*://'
ifconfig ppp0 | grep inet | sed 's,^ *inet addr:\([0-9\.]*\).*,\1,g'
:P
(kai an alakseis to inet se 'inet[^6]' prepei na doylevei gia opoiodipote
interface...)
> - Giorgos
<<V13>>
More information about the Linux-greek-users
mailing list