Quantcast
Viewing latest article 17
Browse Latest Browse All 46

Answer by lessthanideal for How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?

The find command may help

find $PWD -name ex*find $PWD -name example.log

Lists all the files in or below the current directory with names matching the pattern. You can simplify it if you will only get a few results (e.g. directory near bottom of tree containing few files), just

find $PWD

I use this on Solaris 10, which doesn't have the other utilities mentioned.


Viewing latest article 17
Browse Latest Browse All 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>