On Wed, 29 Sep 2021 05:48:25 +0000, kekronbekron wrote:
>Else, ls -alR on both dirs.
>Then, create a blank project in PyCharm/IntelliJ and navigate to the dir
>containing these 2 listings.
>Select both and then choose diff/compare.
>Believe me, git style diff-ing is super neat and convenient, compared to the
>standard diff we use on zOS.
>
Should timestamp, permissions, owner, group be compared? I chose not to.
The OP might feel the opposite.
Must thee method deal with non-portable filenames? In the extreme case, a
filename can mimic a line output by "ls -alR".
>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
>On Wednesday, September 29th, 2021 at 9:33 AM, Paul Gilmartin wrote:
>
>> On Tue, 28 Sep 2021 21:22:29 -0500, Bruce Hewson wrote:
>> >
>> > We are looking for a way to compare 2 filesystem structures, starting at
>> > root '/'.
>> >
>> > Differences we want to identify:-
>> >
>> > 1. directory
>> > 2. file
>> > 3. symlink
>>
>> from the file it references. You might isolate the symlinks with:
>>
>> find . -type l -exec ls -l {} \; |
>>
>> sed -E 's/( [^ ]){8}//' >TheLinks
>>
>> ... in each filesystem and compare the generated listings of links.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN