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

Re: eth0 : no such device



Quoting Lisi Reisz (lisi.reisz@gmail.com):
> On Friday 31 July 2015 18:15:14 The Wanderer wrote:
> > I usually interpret "parse" in this sort of context to refer to machine
> > parsing, not reading by humans
> 
> Ah!  I'll certainly accept that.  I took it to mean:
> 1. (linguistics) To resolve into its elements, as a sentence, pointing out the 
> several parts of speech, and their relation to each other by government or 
> agreement; to analyze and describe grammatically.
> 
> I.e. to deconstruct and understand.
> 
> I didn't know the meaning:
> 2.(computing) To split a file or other input into pieces of data that can be 
> easily stored or manipulated.
> 
> https://en.wiktionary.org/wiki/parse
> 
> So you have taught me something, and I wouldn't argue about that!

My apologies for causing confusion. The original exchange that I was
referring back to with my emphasis was indeed the "ip address" thread.
I ought to have added two words to my comment (in brackets):

        > ifconfig output is much easier to look at.

        But much harder to parse. And ip's -o switch makes it even easier
        [to parse] because each item is all on one line.

I still think it's fairly obvious that I *was* contrasting reading
(ie looking at) and something else (using the results in a script,
parsing). That's why I wrote "But...".

Still harking back to that thread, I made my original comment there
because I didn't think that the OP's posting (flagged "solved")
answered the question satisfactorily, viz.

Q: What command will tell me what ip address it is using?
A: The problem was that ifconfig is in sbin not bin.

Your answer, ip addr, was much better and ought IMHO to have been
quoted and flagged. Ironically, your suggestion yesterday (ifconfig)
was not so potentially useful for a different reason (ifconfig might
not be there), but of course you didn't have the context.

There's nowt wrong with ifconfig but a lot of people don't seem to
even know about ip. BTW it might be worth pointing out that the
examples of its use are all in the man pages listed at the bottom of
man ip. It keeps   man ip   smaller but unfortunately means you can't
use bash-completion on such as   man ip-neighbour. What a contrast to
ip itself, eg, "ip n"!

Cheers,
David.


Reply to: