Write a script in perl

Assignment Help Programming Languages
Reference no: EM13935467

Write separate Perl scripts for each of the given requirements. Mentioned input data files are attached with this posting. In each case command to run the script from the command line should look like:

COMMAND_PROMPT> script_number.pl input_data_file.txt

[1] A script script_1.pl that replaces each instance of "th" with "TH" in file part1.txt. The script should print the file to the screen, not just the replaced lines.

[2] A script script_2.pl to look for lines in the file part2.txt containing a period, question mark, or comma at the end of the line. When these lines are found, print only the part of the line that occurs after the word "it" (case insensitive).

[3] A script script_3.pl that prints only words (not the entire line) in the file part3.txt on a word boundary that have the letter "p" or "P" in them (i.e. words begin/end with P/p).

Reference no: EM13935467

Questions Cloud

Would the cells present have had to grow : Hamburger ground under the best condition often has a bacterial count of 1000-10,000 per g due to contamination. If your sample had 10^6 bacteria per g, could this number have been just contamination or would the cells present have had to grow? W..
What is maximum initial cost company would be willing to pay : Scanlin, Inc., is considering a project that will result in initial aftertax cash savings of $1.72 million at the end of the first year, and these savings will grow at a rate of 2 percent per year indefinitely. What is the maximum initial cost the co..
Consultants to bring gala information security : A project plan which incorporates the essential components of project management. This will include personnel, the activities to be undertaken by each team member, a timeline using an appropriate planning tool, the risks and threats to successful ..
Hr managers need to be up to the challenge : Written Analytical Essay (Individual) "Organisations are experiencing unprecedented levels of change in their environment, and HR managers need to be up to the challenge."
Write a script in perl : Write separate Perl scripts for each of the given requirements. Mentioned input data files are attached with this posting. In each case command to run the script from the command line should look like:
Why are direct gram stains ordered on clinical specimens : Why are direct gram stains ordered on clinical specimens? Why is a direct gram stain performed on all anaerobic cultures, even if it is not specifically ordered by the physician? Why is a gram stain performed on all CSFs?
What actions do you take to get the new shares : ABC Company is currently quoted at 53 on NASDAQ. A Rights Offering has been declared with an exercise price of 48, and 4.92 rights are needed to buy a new share. If you own 10 round lots of this company, answer the following: How many new shares can ..
Van buren currently expects to pay a year-end dividend : Harrison Corporation is interested in acquiring Van Buren Corporation. Assume that the risk-free rate of interest is 4% and the market risk premium is 8%. Van Buren currently expects to pay a year-end dividend of $1.85 a share (D1 = $1.85). Van Buren..
Examine and critically evaluate the hrm implications : Individually, research and write an analytical essay which uses relevant human resource management (HRM) theory and empirical research evidence to examine and critically evaluate the HRM implications of two (2) of the environmental changes present..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd