How can I send an email from the command line?
Thomas Kaiser
thomas at kaiser.linux-site.net
Sun Feb 13 21:42:00 UTC 2005
There is a typo. The second cut should be like this "cut -d' ' -f1".
So, the whole command looks like this:
$(ifconfig ppp0 | grep 'inet addr' | cut -d: -f2 | cut -d' ' -f1)
Regards, Thomas
Dennis Kaarsemaker wrote:
> On Sun, 2005-02-13 at 18:34 +0000, Neil Woolford wrote:
>
>>PPS Yes, I know I could make that grep work harder to extract just
>>the
>>numbers, and I should pass
>>a parameter to ifconfig so that it only returns the dialup section.
>>Maybe
>>later tonight?
>
>
> $(ifconfig ppp0 | grep 'inet addr' | cut -d: -f2 | cut -d' ' -f2)
More information about the ubuntu-users
mailing list