Show Bid Request
Apply awk, grep, sed filters
Bid Request Id: 20259
|
|
|
Posted by: |
Matt (4 ratings)
(Software buyer rating 9)
|
Non-action Ratio: |
Very Good - 10.00%
|
Buyer Security Verifications: |
Unverified
|
Approved on: |
Jun 29, 2002 6:50:01 AM EDT
|
Bidding Closes: |
Jul 1, 2002 EDT
|
Viewed (by coders): |
177 times
|
Deadline: |
7/1/2002
TIME EXPIRED
|
|
|
|
Description:
Use any of the types of filters such as awk, grep, or sed to design a new command/script, called viewprog, which allows the on-screen viewing of a range of lines of a file passed in as an argument to it. The command should be invoked as follows:
viewprog num1 num2 fileA
where
num1 …. the number of the first of the lines you want to view num2 …. the number of the last line you want to view fileA …. denotes the file whose contents you want to view
Since a screen displays at most 24 lines, the range of lines to be displayed should not exceed 20, in order to allow space for a message line at the bottom of the screen, plus some spacing. If num2 - num1 > 20, only the first 20 lines should be displayed and a one line message at the bottom of the screen should alert the user that there are more lines to be viewed and the space bar should be depressed to see the next 20 lines (if any).
If num1 and num2 are in reverse order, so that num2 < num1 , a message should be displayed on the screen, requesting that the command be reentered and that the beginning line number be less than that of the last line.
Test the command you have designed and ascertain that it functions correctly with any range of lines, to include the complete file from the beginning to end, and partial ranges, with num1 = 1, that is the beginning line, or num2=$, where the symbol $ denotes the last line of the file.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Linux 7.2 using the Bourne Shell
Must be 100% finished and received by buyer on:
Jul 1, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$4 (USD)
|
Jun 29, 2002 9:40:25 PM EDT
|
8.63
(Superb)
|
|
|
Hi,
I already got it done this is simple.
Accept the bid and get it. I could have done this for free but can't bid for less than this amount. Rentacoder prohibits it !!! :)
Thanks, CPandz
|
|
|
|
|
N/A
|
Jun 29, 2002 9:57:16 PM EDT
|
8.63
(Superb)
|
|
|
Just a note,
I am an instructor for Unix shell programming and system programming and i teach professionals this stuff.
Thanks, CPandz
|
|
|
|
|
|