Regular expressions in commands and scripts

Assignment Help Basic Computer Science
Reference no: EM131544535

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: [email protected] (name may contain letters, digits, underscores, dashes and periods; domain contains the same minus underscores; tld is a top-level domain).
  2. Example: [email protected] is a valid email
  3. Example: [email protected] is invalid (tld is invalid, too long)
  4. Write a regex that matches email in the following formatS: [email protected], 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).

Reference no: EM131544535

Questions Cloud

What is socialization : 1. What is socialization? 2. What is the difference between primary and secondary socialization?
Research the barriers and issue of the time : Examine the personal beliefs of your person that prompted this work.Research the barriers and issue of the time.
How many years do bonds have left until they mature : How many years do these bonds have left until they mature?
How much overlap should be built into the grade ranges : Assume you are leading a team of consultants hired by MPBS to help develop their total compensation plan. MPBS wants to implement a compensation plan.
Regular expressions in commands and scripts : Use regular expressions in commands and scripts. Read help on Windows command findstr and Linux utility grep. Use grep with option -P.
Describe how sales of individual items would be entered : Describe how sales of individual items would be entered? How the database would store the data compared to the current spreadsheet method?
What is the present value of annuity : what’s their future value if the compounding rate is 9.50 percent APR? What is the present value of this annuity?
Calculates the bill for a cellular telephone company : Java program that calculates the bill for a cellular telephone company. The company offers two types of service: regular and premium.
Charts based on the datasets in the exercise files : Create the following charts based on the datasets in the exercise files in the Lynda.com® video for this week.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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