Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) Write a C Shell script that will add the current date to the end of a filename. E.g., if today is Dec 25, 2017,

image text in transcribed
2) Write a C Shell script that will add the current date to the end of a filename. E.g., if today is Dec 25, 2017, then the shell script should change the filename to: filename.20171225 The script should read the filename from the command line. Hence, if we named this script adddate then execution of this command should look like: >>addate filename 3) Write a C Shell script that will remove dates added with the script written in Problem #2. Note: this script should also work when there is a dot in the filename. E.g., the code should work for any filename of the form... foo.20101225 foo.foo. 20101225 foo.foo.foo. 20101225 foo.foo.foo.*. 20101225 Output file names for the examples above should be: foo foo.foo foo.foo. foo etc

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

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago