Date: Mon, 4 Feb 2002 05:37:38 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Angela O Yu <angelaoyu@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: question about command 'cut' Message-ID: <20020204033738.GA3346@hades.hell.gr> In-Reply-To: <OE69Zv7FDwfCrbreLDw0001f14b@hotmail.com> References: <OE69Zv7FDwfCrbreLDw0001f14b@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-02-03 21:57, Angela O Yu wrote: > Hello > > I have a problem with cut > > I would like to get output > > hotmail.com from www.hotmail.com > > However, this command output > > cut -d "." -f1 filename --> hotmail > > How can I get output hotmail.com You want fields 2 up to (and including) the last one. Try this: % echo www.hotmail.com | cut -d. -f2- hotmail.com -- Giorgos Keramidas . . . . . . . . . keramida@{ceid.upatras.gr,freebsd.org} FreeBSD Documentation Project . . . http://www.freebsd.org/docproj/ FreeBSD: The power to serve . . . . http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020204033738.GA3346>