Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

home / study / engineering / computer science / computer science questions and answers / task 3.4 challenge exercises (15 points) a. write script to

home / study / engineering / computer science / computer science questions and answers / task 3.4 challenge exercises (15 points) a. write script to see current date, time, username, ...

Your question has been answered

Let us know if you got a helpful answer. Rate this answer

Question: Task 3.4 Challenge Exercises (15 Points) a. Write Script to see current date, time, username, and...

Task 3.4 Challenge Exercises (15 Points)

a. Write Script to see current date, time, username, and current directory.

b.Take the script from Task 2.5 and write it so it does not create a file if no input is received.

c. In this exercise, you will create a script based on case statement.

d. Write a Shell using for loop to print three strings.

e. Write a bash Script to reverse a given positive integer.

The following is the script fro 2.5:

Task2.5: Write a script that will ask the user for to input a file name and then create the file and echo to the screen that the file name inputted had been created

1. Open a new file script creafile.sh using vi editor

2. Type the following lines

#!/bin/bash echo enter a file name: read FILENAME touch $FILENAME echo $FILENAME has been created

3. Add the execute permission

4. Run the script #./creafile.sh

5. Enter the file name you want to create

6. Check whether file is created

Show input and output for every step, as well as screen shots!!!!!!. I been using the terminal to run the code

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_2

Step: 3

blur-text-image_3

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

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions