Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Goal

Use regular expressions in commands and scripts. Read help on Windows command findstr and Linux utility grep. Use grep with option -P.

Output

Complete the following tasks and submit it to the correlating assignment submissions folder. Supply screenshots to support your answers.

Procedure

Complete the following tasks.

Tasks

  1. Write a regex that matches email in the following format: n..e@domain.tld (name may contain letters, digits, underscores, dashes and periods; domain contains the same minus underscores; tld is a top-level domain).
  2. Example: j..d@5peacocks.com is a valid email
  3. Example: j..d@armadillo.cuteanimal is invalid (tld is invalid, too long)
  4. Write a regex that matches email in the following formatS: n..e@uiu.edu, name @ uiu.edu, name at uiu dot edu (in each case name may contain no more than 1 period).
  5. Write a Windows script, pipe or command that prints a line from the file sciencemath.html that contains my last name (Yasinovskyy).
  6. Write a Windows script or a pipe that finds all lines of a sciencemath.html that contain an email and saves them to a file harvest.txt (saved lines may contain other text, not just email).
  7. Write a Windows script or a pipe that counts number of Science and Math faculty emails (hint: use findstr and find).
  8. Write a Windows script that asks what file ([A]rts, [B]usiness, [E]ducation, [S]cience) a user wants to process and prints number of email addresses in that file.
  9. Write a Linux script or a pipe that prints names of Science and Math faculty.
  10. Write a Linux script or a pipe that prints emails of all UIU faculty and saves them (emails only) to a file harvest.txt.
  11. Write a Linux script that takes any faculty name as an argument and prints school affiliation of that person person's email (process all 4 files).
  12. Write a Linux script that takes any faculty name as an argument and prints that person person's email (process all 4 files).

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92353258
  • Price:- $25

Priced at Now at $25, Verified Solution

Have any Question?


Related Questions in Computer Engineering

We have bottles of milk that have a mean of 20 oz and

We have bottles of milk that have a mean of 20 oz and standard deviation of 0.02. What is the probability that a bottle would have a mean of more than 20.3 oz?

Refer to the figure on the previous page now assumed host a

Refer to the figure on the previous page. Now assumed Host A has a file that has been broken down into 2001 packets, of size 20Kb each. How long would it take to transmit the file if each link has a capacity of 10Mbs, pr ...

Design layout reference mailings review view consolas 105 a

Design Layout Reference Mailings Review View Consolas 10.5 A. A Styles styles H- 1. Report the total payments by date when the total payments are greater than $20,000. 2. List the amount paid by each customer who has pai ...

Inside the oncreate method fill in the code so that we set

Inside the onCreate method, fill in the code so that we set the layout and GUI defined in activity_main.xml? public void onCreate( Bundle savedInstanceState ){ super.onCreate(savedInstanceState); // Your code goes here }

Show a schedule with two transactions that share a single

Show a schedule with two transactions that share a single data item (A in block BA) and that is not serializable, but that is equivalent to a serial schedule of the two transactions for certain initial values of A. Indic ...

Whats the difference between a bigfile tablespace and a

What's the difference between a Bigfile tablespace and a Smallfile tablespace? Explain which you would use for your database and why.

1 what is the purpose of exclusive gates such as the xor

1. What is the purpose of exclusive gates such as the XOR and XNOR? 2. What function do these gates perform?

We have a scheme program belowdefine lst i think you like

We have a Scheme program below: (define lst '(I (think you) like me)) (set! lst (cdr lst)) (set-car! lst '(thinks you)) (set! lst (cons 'he (cons 'also lst))) (a) For each execution step of the above program, draw the me ...

The pressure of 50 l of an ideal gasin a flexible container

The pressure of 5.0 L of an ideal gasin a flexible container is decreased to one-forth of its original pressure, and itsabsolute temperature is decreased to one-forth of the original. What is the finalvolume of the gas?

1 the economy is in a recession with high unemployment and

1) The economy is in a recession with high unemployment and low output (i.e. the output currently is lower than the natural level of output) a) Draw a graph of aggregate demand and aggregate supply to illustrate the curr ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As