![]() |
![]() |
EnderUNIX tipsMail to My Friend , Home Page[ Shell Scripting ] "CARROTS ARE GOOD FOR YOU" - Ülkü SAYILAN - (2005-02-01 15:29:20) [4404] 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. Mail to My Friend , Home Page |
|