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 pseudocode that takes number entered by user

Write a piece of pseudocode that takes a number entered by the user and prints out every number from that number up to 100 and then prints END.

  Procedure to draw shape of choice

Write a program with a suitable procedure to draw shape of your choice. Your program must then call the procedure 10 times to draw the shape.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Write a program that lets the user play the game of rock

Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. When the program begins, the user is asked to seed the random number generator, and a random number in the range of 1 through 3 is generated

  Translate the given code into mips64 assembly language

you can use the instructions 'blt' (branch on less than), 'ble' (branch on less or equal), 'bgt' (branch on greater than) and 'bge' (branch on greater or equal) - Translate the given code into MIPS64 assembly language.

  Write a program to prints the sum of all elements with an

write a program to prints the sum of all elements with an even index and all elements with an odd index of the

  Express javascript code that called to validate text-field

Write a JavaScript function to validate a text-field on a form that is to hold an email address.

  Write application to store three tests grades of students

Write the application to store three tests grades of 20 students in two dimensional array GRADES. Then program must prompt user to select from the menu.

  Create a program for telephone lookups

Create a program for telephone lookups. Your tasks are to allow the user find a number that is associated with a name and if given a number, find the name associated with it (normal and reverse lookups).

  Application to convert kilometers in miles

Application will input number of kilometers, compute number of miles, and display number of miles. You will use a constant to store the kilometers-to-miles conversion factor.

  Write program to calculate distance and time hurricane take

Write C++ program that will calculate the distance and time it will take (days/hours) for hurricane to reach Ft. Lauderdale if: Hurricane is at coordinates 16 N, 64 W, just SE of South Fla. off in Atlantic, with a speed of 20 mph.

  Program to manage phonebook contact using binary search tree

Use C++ language to carry out this exercise, BST (Binary Search Trees) template. Write down the program which manage phonebook contact using BST.

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