Question: 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,

 2) Write a C Shell script that will add the current

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!