[olug] Unix Tip: CARROTS ARE GOOD FOR YOU

Unix Guru Universe listserv at ugu.com
Sat Nov 23 19:01:09 UTC 2002


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

			      UNIX GURU UNIVERSE 
			         UNIX HOT TIP

			Unix Tip 2153 - November 23, 2002

		    http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


CARROTS ARE GOOD FOR YOU

Most often when we try to execute a command at the shell we do 
some mistakes like missing out a char or misspelling it. 
Here is a easy way of correcting the mistake without having 
to type the entire command again!.

In the below command "name" has been misspelled as "naem"

$ find . -naem "*.txt" -print
find: invalid predicate `-naem'

The above command would be valid if we replace "em" (in naem) 
to "me"( to have name ). Use carrots to make this change

$ ^em^me^
find . -name "*.txt" -print

This technique works well with bash and csh.

This tip generously supported by: desikann at future.futsoft.com




--------------------------------------------------------------------------
To Subscribe:    http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe:  http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today

==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX 
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU  ADVISES THAT 
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.

Unix Guru Universe - www.ugu.com - tips at ugu.com - Copyright 1994-2001
==========================================================================




More information about the OLUG mailing list