Re: Ensure consistent order of find output

2020-01-27 Thread Bernhard Voelker
On 2020-01-27 01:16, James Youngman wrote: > On Sun, Jan 26, 2020 at 3:23 PM Peng Yu wrote: >> 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 s

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

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,