UNIX Formatting with grep, sed and awk

abgncvengr
timer Asked: May 1st, 2018

Question Description

LAB 5

1. I HAVE INCLUDED ALL SOLUTIONS WITH THIS ALREADY FOR YOUR REFERENCE BUT I NEED A UNIQUE SUBMISSION. THEY CANNOT BE DUPLICATE.

2. ALL REQUIRED FILES FOR BOTH PARTS ARE INCLUDED IN THE ZIP.

3. PLEASE INCLUDE SCREENSHOTS OF THE COMMAND SCREEN WHENEVER POSSIBLE, THE NAME SHOULD READ "NAWSAFMBP" IN TERMINAL/UNIX IF YOU DO SO, YOU MIGHT HAVE TO RENAME YOUR PC FOR THIS.

4. PLEASE INCLUDE ALL RELATED/WORKING FILES IN THE FINAL SUBMISSION.

For the following labs include the following header in your scripts:

#!/bin/bash

# File name: <filename of your script>

# Author: <Include your full name here>

# Term: <Spring 2018>

# Date: <Include the date you created the script>

Be sure to also include detailed comments in each script!

Part I: Historical artifacts

The oldest commands in UNIX/Linux are found in the /bindirectory. They are simply two letters and the preform a single very specific task, but they preform it very well.

Write a shell script called lab5.1to search the /bindirectory and find all commands that are made up of two lower case letters. Your script should save the list of commands, as well as the number of commands found, in a file called lab5.1.out.


Part II: Live Free or Process Data

Consider the files L2E1.iva, L2E2.iva, and L2E3.ivafrom your lab2E. This is raw performance data collected on a solar photovoltaic module installed at the ASU Polytechnic campus. This data must be processed to determine the performance output of the system or panel. The 3 files correspond to 3 repeated measurements.

Write a shell script calledlab5.2which uses the tools you have learned in this unit, including at least one use of regularexpressions, grep, sed, paste, and awk, to extract, edit and format the necessary data from the three files to resemble the processed data below:

Performance Data

Curve Name gge0001x gge0001y gge0001z

Date 12/30/2006 12/30/2006 12/30/2006

Time 14:15 14:15 14:16

Tamb (°C) 15.8 16.1 15.0

Tref (°C) 30.1 29.6 29.9

Tm (°C) 20.2 22.3 23.4

Irradiance (W/m^2) 1006.2 1003.5 999.8

Isc (A) 8.40 8.41 8.37

Voc (V) 37.14 36.82 36.62

Imp (A) 7.55 7.53 7.44

Vmp (V) 28.19 27.90 27.86

Pm (W) 212.86 210.15 207.15

FF (%) 68.3 67.9 67.6

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors