Solved-Assignment #3- Scripting, Regex, Git- Solution

$30.00 $19.00

Overview In this assignment, you will be writing two scripts: A shell script and a python script. The shell script will output 1000 random integers to a file, and the python script will use a regex pattern to output all of the numbers of that file that are divisible by 5. These two scripts will…

You’ll get a: . zip file solution

 

 

Description

5/5 – (2 votes)

Overview

In this assignment, you will be writing two scripts: A shell script and a python script. The shell script will output 1000 random integers to a file, and the python script will use a regex pattern to output all of the numbers of that file that are divisible by 5. These two scripts will be submitted via a private git repository on GitHub.

Submission

No webcampus submission. Follow the link provided below to create a GitHub classroom repo to push your code to. I will be checking the two scripts as well as the usage of git for revision control.

To-Do

For Git repo

Shell script:

  • Create file in current directory named pa3.out, overwrite if already exists

  • Loop 1000 times

    • Output a random number to said file

Use wcand tail to check

Python script

  • Write a regex pattern to search for numbers divisible by 5

  • Check for matches in input file

  • Print out each match