Question: System Programming (CIS 340) Spring 18 . (10 points) 1/0 Redirection, Shell Seripts (a) (3 points) Consider the following shell seript. What are purposes of
System Programming (CIS 340) Spring 18 . (10 points) 1/0 Redirection, Shell Seripts (a) (3 points) Consider the following shell seript. What are purposes of -n and what is the output of the script. #1 /bin/sh " adda up the size of all file eizes-'1s-1 1 cut -b 29-30 total o for i in Saizea ?total " ?1. total".expr echo $1 + dono echo $total and their email addresses. Write a shell script to read a name from the user and generate a new file (e.g., matched. dat) consists of matched entries. (b) (4 points) Suppose student.dat is a text file with two columns of student names (c) (3 points) 1/0 standard stdin is connected by default to the keyboard. How can connect it to a file? Describe the steps. System Programming (CIS 340) Spring 18 . (10 points) 1/0 Redirection, Shell Seripts (a) (3 points) Consider the following shell seript. What are purposes of -n and what is the output of the script. #1 /bin/sh " adda up the size of all file eizes-'1s-1 1 cut -b 29-30 total o for i in Saizea ?total " ?1. total".expr echo $1 + dono echo $total and their email addresses. Write a shell script to read a name from the user and generate a new file (e.g., matched. dat) consists of matched entries. (b) (4 points) Suppose student.dat is a text file with two columns of student names (c) (3 points) 1/0 standard stdin is connected by default to the keyboard. How can connect it to a file? Describe the steps
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
