The UNIX and Linux Forums  


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 10-01-2007
am2007 am2007 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 4
Unix/Linux Scripts questions

Hi All,

You have a very large file, named 'ColCheckMe', tab-delimited, that you are asked to process. You are told that each line in 'ColCheckMe' has 7 columns, and that the values in the 5th column are integers. Using shell functions (and standard LINUX/UNIX filters), indicate how you would verify that these conditions were satisfied in 'ColCheckMe'

In the same file, you are told that each value in column 1 is unique. How would you verify that?


Write a shell function that counts the number of occurrences of the word “SpecStr” in the file 'ColCheckMe'.

Please advice.

Thanks much.