Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz help me with these question 1. [20 points] Write a shell script called fixCprogram.sh which looks up every c file in the current directory

plz help me with these question image text in transcribed

1. [20 points] Write a shell script called fixCprogram.sh which looks up every c file in the current directory for the strings printf or fprintf. If found, the script adds the statement #include at the beginning of the file but only if it doesn't already have it included. Record a screen shot which shows the result 2. [10 points] Use awk to display all files and directories in current directory that has names longer than 6 characters. Record a screen shot which shows the result. 3. [10 points] Use awk to display from /etc/passwd a list of users and their shells for those using the Korn shell or Bash. Record a screen shot which shows the result. 4. [20 points] Write a perl script called characterline.pl that accepts a string from the keyboard and then prints each character of the string on a separate line. Record a screen shot which shows the result 5. [20 points] Write a perl script called weekdays.pl that populates an array named weekday from the string SunMonTueWedThuFriSat, and then prints each day in uppercase. Record a screen shot which shows the result 6. [20 points] Write a perl script (printReverse.pl) to take a string as an input parameter, and print the string in reverse. For example if the input string is "12 234 abcd" the output should be dcba 432 21". Record a screen shot which shows the result

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago

Question

5. Do you have any foreign language proficiency?

Answered: 1 week ago