Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Re: Array::Compare issues

by sunadmn (Curate)
on Oct 03, 2003 at 19:48 UTC ( #296373=note: print w/replies, xml ) Need Help??

in reply to Re: Array::Compare issues
in thread Array::Compare issues

here you go this is a sample of my array contents for @array1
/usr/share/release_info/Solaris_8/C/S8FCSreleasenotes /usr/share/lib/pub/UTF-8 /usr/share/lib/pub/ascii /usr/share/lib/pub/eqnchar /usr/share/lib/pub/greek /usr/share/lib/pub/iso /usr/share/lib/setterm/en_US.UTF-8/conf.file /usr/share/lib/mailx/ /usr/share/lib/mailx/ /usr/share/lib/tabset/3101 /usr/share/lib/tabset/beehive /usr/share/lib/tabset/hds /usr/share/lib/tabset/hds3 /usr/share/lib/tabset/std /usr/share/lib/tabset/stdcrt /usr/share/lib/tabset/teleray /usr/share/lib/tabset/vt100 /usr/share/lib/tabset/wyse-adds /usr/share/lib/tabset/xerox1720 /usr/share/lib/terminfo/3/386AT /usr/share/lib/terminfo/3/386AT-M /usr/share/lib/terminfo/3/386at /usr/share/lib/terminfo/3/386at-m /usr/share/lib/terminfo/3/300 /usr/share/lib/terminfo/3/3045 /usr/share/lib/terminfo/3/31 /usr/share/lib/terminfo/3/3101
And here is @file2 sample content.
/usr/share/release_info/Solaris_8/C/S8FCSreleasenotes /usr/share/lib/pub/UTF-8 /usr/share/lib/pub/ascii /usr/share/lib/pub/eqnchar /usr/share/lib/pub/greek /usr/share/lib/pub/iso /usr/share/lib/setterm/en_US.UTF-8/conf.file /usr/share/lib/mailx/ /usr/share/lib/mailx/ /usr/share/lib/tabset/3101 /usr/share/lib/tabset/beehive /usr/share/lib/tabset/hds /usr/share/lib/tabset/hds3 /usr/share/lib/tabset/std /usr/share/lib/tabset/stdcrt /usr/share/lib/tabset/teleray /usr/share/lib/tabset/vt100 /usr/share/lib/tabset/wyse-adds /usr/share/lib/tabset/xerox1720 /usr/share/lib/terminfo/3/386AT /usr/share/lib/terminfo/3/386AT-M
Basiclly what I am trying to get out of this is a quicker way to build packages for Solaris boxes. With that said the output we want is just the differences in the two files. @file1 is an array of what was in /usr prior to the compile and make install of the software. @file2 is a list of /usr after the compile ad make install. Now it would sound easier to just use "sdiff" , but the issue I have ran into is that when you run sdiff you get output that looks like this
/usr/local/lib/security/ /us +r/local/lib/security/ > /us +r/local/lib/ > /us +r/local/lib/ > /us +r/local/lib/libisc.a > /us +r/local/lib/ > /us +r/local/lib/ > /us +r/local/lib/libisccc.a > /us +r/local/lib/ > /us +r/local/lib/ > /us +r/local/lib/libdns.a > /us +r/local/lib/
And with long file names they get cut off, this sounds like it should be easy to get around, but when you are packaging large apps that have a lot of file like Perl and ISC's Bind this take a lot of leg work. I hope that helps with what I want to do here please let me know if you need any more info.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296373]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-07-08 05:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found