Difference between revisions of "GNU Find Examples"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) (Created page with "==Relative paths== <pre> find /somedir/ -type f -mtime -90 -exec realpath --relative-to /somedir {} \; </pre>") |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
==Relative paths== | ==Relative paths== | ||
+ | <ref>https://unix.stackexchange.com/questions/104800/find-output-relative-to-directory</ref> | ||
<pre> | <pre> | ||
find /somedir/ -type f -mtime -90 -exec realpath --relative-to /somedir {} \; | find /somedir/ -type f -mtime -90 -exec realpath --relative-to /somedir {} \; | ||
</pre> | </pre> |
Revision as of 11:13, 18 December 2019
Relative paths
find /somedir/ -type f -mtime -90 -exec realpath --relative-to /somedir {} \;