The UNIX and Linux Forums  


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



Homework & Coursework Questions Students must use and complete the template provided. If you don't, your post may be deleted! Special homework rules apply here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-05-2009
Registered User
 

Join Date: Nov 2009
Posts: 2
Help with Simple Perl/Python Script

I have the following problem, which I need done in Perl/ or Python using Unix/linux filters...

1. You have a very large file, named 'ColCheckMe', tab-delmited, 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 Perl/python (and standard LINUX/UNIX filters), indicate how you would verify that these conditions were satisfied in 'ColCheckMe'


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


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


Thanks a lot
  #2 (permalink)  
Old 11-06-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,660
Please review the rules, which you agreed to when you registered, if you have not already done so.

please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with Simple Perl/Python Script Swapnilsagarwal Shell Programming and Scripting 1 11-05-2009 04:39 PM
Not able to run the simple perl script Amey Joshi UNIX for Dummies Questions & Answers 9 10-21-2009 02:14 AM
Simple Script needed for Processing CSV file perl cobbjob Shell Programming and Scripting 1 09-06-2009 09:28 PM
simple perl script not working hankooknara Shell Programming and Scripting 4 01-11-2007 02:02 AM
Simple Perl Script to Screen Display Shakey21 Shell Programming and Scripting 1 04-19-2002 12:55 PM



All times are GMT -4. The time now is 11:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0