=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 3584 - December 2, 2013
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@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@ugu.com - Copyright 1994-2001
==========================================================================
Senin, 02 Desember 2013
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar