Unix Doubt

What is Primary Group & Secondary group and what is the difference between them.

Try it:

Primary group/Secondary group - Wikipedia, the free encyclopedia

best regards joerg

Ok this is a more technical view

System Administration Guide: Basic Administration

Best regards
joerg

hi
if you create a new file the group of this file is your primary group. if you access an existing file there is no difference between your primary and secondary groups
mfg guenter.

Hi Guys,

Requirement;

Want to compare two files, if the the content of both files is same then show "Good result" else Show "Bad Result"

I am using the following logic

if( cmp -s a b = 0 )

then
echo "Good result"
else echo "Bad result"
exit 0
fi

But this is not working.

FYI, the content of file is as shown below

for file a

0 TOTALS 8,325 17,887,904 13,907 163,243,465 1,306,821,707 10.9 %

For file b

0 TOTALS 8,325 10,000,904 13,907 163,243,465 1,306,821,707 10.9 %

Since the 4th values in b is differnt so that output of If statement should be "Bad result"

It will be really great if someone can help me out with this.

Thanks,

There's already a thread started.

Was this post by mistake ? :slight_smile: