Computing.Net > Forums > Unix > Script Help

Script Help

Reply to Message Icon

Original Message
Name: Gravebear
Date: May 13, 2007 at 08:07:43 Pacific
Subject: Script Help
OS: Xp
CPU/Ram: 1gig
Model/Manufacturer: E_machine
Comment:

Hey Guys, i was wondering if any of you's could help us with a piece of code,

Design and implement a script that provides line numbered contents of a file( must include control structures,files, and command line arguments)

and the second part is modify the the script to process one or more files in a given run of the script, (have to at least use one conditional statement and at least one loop together with parameter passing)

thanks guys any help would be Appreciated. :D


Report Offensive Message For Removal


Response Number 1
Name: FishMonger
Date: May 13, 2007 at 09:30:12 Pacific
Subject: Script Help
Reply: (edit)

Hmmm, what's wrong with your question?

1) Your state that you're using XP but your question is posted in the Unix forum.

2) You don't say which scripting language you're using.

3) You're asking us to do your HOMEWORK.

We're not going to do your homework, but here's a clue.

perl -ne 'print "$. $_"' somefile


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Script Help

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge