Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 th question Please As early as possible 1. [20 points] Write a shell script called fixCprogram.sh which looks up every c file in the

6 th question Please As early as possible 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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago