From owner-freebsd-questions Wed Jan 23 18:48:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 8859C37B400 for ; Wed, 23 Jan 2002 18:48:15 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 570E82B7CD; Thu, 24 Jan 2002 03:48:13 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id 4570566A; Thu, 24 Jan 2002 13:48:08 +1100 (EST) Date: Thu, 24 Jan 2002 13:48:08 +1100 From: Edwin Groothuis To: ann kok Cc: freebsd-questions@FreeBSD.ORG Subject: Re: commands Message-ID: <20020124134808.I823@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , ann kok , freebsd-questions@FreeBSD.ORG References: <20020124023637.67504.qmail@web20108.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020124023637.67504.qmail@web20108.mail.yahoo.com>; from annkok2001@yahoo.com on Wed, Jan 23, 2002 at 06:36:37PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 23, 2002 at 06:36:37PM -0800, ann kok wrote: > I would like to know the commands > > 1/ tail -r doesn't work? What do you mean with "doesn't work" ? > 2/ how to check the word that appears more than one in > the file? for i in `cat .profile | fmt -1 | sort | uniq`; do echo -n "$i "; grep -w -- "$i" .profile | wc -l; done But I think there are easier ways to find it out. :-) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message