Advertisement

07.25.2002 at 04:26PM PDT, ID: 20328075
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

SIMPLE question for 300 points .... Need it URGENTLY !!!

Asked by shchong2 in Perl Programming Language

Hi Experts,

Here's an URGENT need for a PERL programme.
I post it for 300 points.
Pls kindly help. Thanks.

Requirement
===========
(1) Syntax :-   smartgrep.pl -type [opt]
     where "-type" is a switch

(2) Description of usage :-

The PERL scripts must be able to selectively grep lines from a file, based on the [opt] used, then save the lines into a new file.
The usage can be best descripted by the following example.

For example :-

I have a file called "original", which contains a lot of lines that look like the following :-
(This file can contain up to > 50000 lines)

  0     EQ    /apple/min_abcde/a
  0     UI    /grapes/u123/c
  0     UO    /ppsseqs/u300/a
  1     UO    /aasflwctls/u9008/a
  1     UO    /aasseqs/min_u2354/a
  0     UO    /aasseqs/u712/b
  1     UO    /aasseqs/u949/b
  1     EQ    /ffsseqs/u805/o
  0     EQ    /ffsseqs/u805/a
  0     EQ    /sssques/min_u808/b
  0     UO    /ssques/u35/c
  0     EQ    /sssques/min_u807/o
  1     EQ    /sssques/min_u807/a
  1     EQ    /sssques/min_u807/b
  0     UO    /sssques/u35/b
  ....... (so on ...)

Basically, there are few terms that are important in the "original" file,
i.e. "UC", "UO", "AU", "UI" and "EQ"

The first four are the main terms.

When I run the "smartgrep.pl" with the following syntax :
prompt> smartgrep.pl -type UO

the script should be able to grep the lines in the "original" file with terms "UO"
AND also lines with "EQ" that comes only after the first "UO" terms.
Then, all the lines that are grepped will be written into a file called "UO.log".

And if next I run the syntax as follow :
prompt> smartgrep.pl -type AU

Of course the script should be able to grep all the lines with "AU" terms
AND also lines with "EQ" terms that come only after the first "AU" terms.
Then, all the lines that are grepped will be written into a file called "AU.log".

Pls kindly help as this is needed URGENTLY.
Thanks.



Start Free Trial
 
Loading Advertisement...
 
[+][-]07.25.2002 at 04:42PM PDT, ID: 7178789

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2002 at 05:12PM PDT, ID: 7178857

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: witty
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.25.2002 at 08:08PM PDT, ID: 7179155

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2002 at 08:08PM PDT, ID: 7179157

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2002 at 08:08PM PDT, ID: 7179159

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2002 at 08:08PM PDT, ID: 7179160

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2002 at 08:09PM PDT, ID: 7179162

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2002 at 11:56PM PDT, ID: 7179453

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32