I'm using find command a lot on unix (csh).
Is it possible that the result will be full/absolute path and will start from the directory where I'm starting the search
for example when running command from
/project/Test/v0.15/test/frontend
, the results are:
./core/serdes_complex/frontend/lib/lib_behave.f
./core/serdes_complex/frontend/lib/test_srd_compile.f
But i would like to get
/project/Test/v0.15/test/frontend/core/serdes_complex/frontend/lib/lib_behave.f
/project/Test/v0.15/test/frontend/core/serdes_complex/frontend/lib/test_srd_compile.f
I got it to work using $PWD
:
find $PWD -name \*.f
Try searching from $cwd
:
find $cwd -name \*.f
You should use the command realpath to resolve the path :
find . -name "*.f" -exec realpath {} \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With