|
|
|
|
UGU: Unix Guru Universe - Unix Tip #4172- July 14, 2012
- Home : Help
: Today's Tip
Unix Tip #4172- July 14, 2012
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
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.
LAST 5 TIPS
4171
- WHERE ARE THOSE PARENTHESES?
4170
- GREP TEXT NOT BINARY
4169
- GET THE HIDDEN FILES
4168
- FINDING A STRING
4167
- RANDOM LINES FROM A FILE
I want to
SUBSCRIBE
and get a UGU Tip everyday.
I want to
UNSUBSCRIBE
and NOT get a UGU Tip everyday.
If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
|
|
|
Copyright 1994-2024 Unix Guru Universe |
|
|
|
|