Computing.Net > Forums > Unix > Script Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Script Help

Reply to Message Icon

Name: Gravebear
Date: May 13, 2007 at 08:07:43 Pacific
OS: Xp
CPU/Ram: 1gig
Product: 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



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: May 13, 2007 at 09:30:12 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Script Help

Unix script help www.computing.net/answers/unix/unix-script-help/6110.html

Korn script help!! www.computing.net/answers/unix/korn-script-help/4858.html

Shell Scripting Help www.computing.net/answers/unix/shell-scripting-help/5020.html