Why would these rules cause errors only sometimes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 25 October 2002 3:54 am, Tasha Smith wrote:

> INET_IP=`ifconfig eth0 |grep "inet addr"|awk -F : '{ print $2 }'|cut -d \ 
> -f 1`;
>
> "That lines casues this error:"
>
> cut: the delimeter must be a single character
> Try `cut --help' for more information.

What character are you trying to use for a delimiter ?   Presumably space....

Try pputting single quotes around a space instead of predecing it with a 
backslash.

Antony.

-- 

If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux