The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-04-2008
Stin Stin is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 28
sorting cksum output.

Hi guys,

I have a service directory with a lot of files in.

I have to cksum the whole directory and compare it to a release note document.

However the problem I have is the files are listed in different lines when running cksum as they are in the release doc. Therefore cksum shows differences.

The release note cksums are in a table in a work doc. I can cut and paste to a notepad and then paste into a file using vi. It creates different white space in the fields but I get around this with diff -w.

If I have the cksums from the release notes in a file called Release_note.cksum and the output the result of cksum * to a file called directory.cksum, is there anything I can do to sort these output and save them each to another file and then diff the 2 sorted files?

Many thanks in anticipation.

Stin