A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by Tim Holloway:
Here's one way:
find . -name logging.properties -printf "%P\n"
And if you only want the filename itself:
find . -name logging.properties -printf "%f\n"
I've added they "\n" to the end of the output to make it more readable on the console.
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Minal Silimkar
but here there is some flaw...
if the file is present in sub directory of dir1
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by Tim Holloway:
I have no idea why this wouldn't work with ksh, since it's a single program being executed with no shell-specific features.
No need for pipelining:
code:
find ./ -name "a.txt" -exec basename {} \;
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |