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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Not able to run the simple perl script Amey Joshi UNIX for Dummies Questions & Answers 9 4 Weeks Ago 01:14 AM
Simple Script needed for Processing CSV file perl cobbjob Shell Programming and Scripting 1 09-06-2009 08:28 PM
Writing simple python setup commands iBot Red Hat 0 04-30-2009 01:45 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 11:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
Swapnilsagarwal Swapnilsagarwal is offline
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 2 Weeks Ago
pludi's Avatar
pludi pludi is online now Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,839
Please do not post homework in the main forums. Repost in the appropriate forum.
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 On




All times are GMT -4. The time now is 07:45 PM.


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