Linux Newbie help
 help / color / mirror / Atom feed
From: Chuck Gelm <nc8q@gelm.net>
To: Brian Jackson <brian-kernel-list@mdrx.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: string manipulating?
Date: Sun, 05 Jan 2003 19:50:01 -0500	[thread overview]
Message-ID: <3E18D2B9.1E3E415C@gelm.net> (raw)
In-Reply-To: 20030105172330.1547.qmail@escalade.vistahp.com

Hi, Brian:

 Thanks.  Your suggestion is the similar to Jim's with
the arguments reversed.

 You and Jim have fed me. Thanks.
Please teach me to fish.  ;-)

 I don't understand the '-f1' and '-f2' arguments.

IMHO, 'man cut' and 'info cut' are equally obfuscating:

-f, --fields=LIST
 output only these fields

duh, what!

Please briefly explain.

Regards, Chuck


Brian Jackson wrote:
> 
> Oops. I meant:
> 
> grep $your_options | cut -f2 -d\( | cut -f1 -d\)
> 
> Brian Jackson writes:
> 
> > Maybe something like:
> >
> > grep $your_options | cut -f2 -d( | cut -f1 -d)
> >
> > That might work. Hard to say for sure, but it looks right. Should give you
> > just the IP address. HTH
> >
> > --Brian Jackson
> >
> > Chuck Gelm writes:
> >
> >> Howdy, Y'all:
> >>
> >>  Using 'grep' I've parsed some stdout to lines ending in
> >> ...(123.45.67.89):
> >>  How can I either:
> >>   extract the last 17 characters
> >>   all characters after the first "("
> >>   all characters from "(" to ")"
> >>  ?
> >>
> >>  I tried
> >> cut -c ".0123456789" filename.txt
> >>  but it returns cut: invalid byte or field list.
> >>  :-|
> >>
> >> Regards, Chuck
> >> -
> >> To unsubscribe from this list: send the line "unsubscribe linux-newbie"
> >> in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >> Please read the FAQ at http://www.linux-learn.org/faqs
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.linux-learn.org/faqs
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2003-01-06  0:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-08 18:38 tar for "full" floppy backup? Jerry James Haumberger
2002-12-09  8:10 ` ichi
2002-12-08 21:07   ` dashielljt
2002-12-09 18:11     ` ichi
2002-12-09 10:16       ` dashielljt
2002-12-09 12:38       ` Mr. James W. Laferriere
2003-01-04 17:50   ` pcmcia-cs quit working Chuck Gelm
2003-01-05 16:46   ` string manipulating? Chuck Gelm
2003-01-05 17:01     ` Jim Reimer
2003-01-05 17:42       ` Chuck Gelm
2003-01-05 17:56         ` Jim Reimer
2003-01-05 17:20     ` Brian Jackson
2003-01-05 17:23       ` Brian Jackson
2003-01-06  0:50         ` Chuck Gelm [this message]
2003-01-06  1:22           ` Brian Jackson
     [not found]           ` <3E19A91A.7EEB7666@wa5rrh.org>
2003-01-06 22:09             ` Chuck Gelm
2003-01-06 23:06               ` Brian Jackson
2003-02-19 22:56   ` PC speaker 'alert' Chuck Gelm
2003-02-20  2:33     ` whitnl73

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E18D2B9.1E3E415C@gelm.net \
    --to=nc8q@gelm.net \
    --cc=brian-kernel-list@mdrx.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox