Difference between revisions of "GNU Find Examples"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==Relative paths== <pre> find /somedir/ -type f -mtime -90 -exec realpath --relative-to /somedir {} \; </pre>")
 
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

[1]

find /somedir/ -type f -mtime -90 -exec realpath --relative-to /somedir {} \;