Ensure consistent order of find output

2020-01-26 Thread Peng Yu
Hi, I'd like to make sure the `find -printf '%P\n'` output of a directory (i.e., only relative paths are printed) be consistent among different runs as long as the file paths in the directory are the same. I can pass the `find` output to `sort`. Is it the best way to do so? Thanks. -- Regards,

Re: Ensure consistent order of find output

2020-01-26 Thread James Youngman
On Sun, Jan 26, 2020 at 3:23 PM Peng Yu wrote: > > Hi, > > I'd like to make sure the `find -printf '%P\n'` output of a directory > (i.e., only relative paths are printed) be consistent among different > runs as long as the file paths in the directory are the same. > > I can pass the `find` output