Question: Write a script that will create a file using todays date and the date format is ddmmmyy.dat 1. Open a new file script date.sh using

Write a script that will create a file using todays date and the date format is ddmmmyy.dat

1. Open a new file script date.sh using vi editor # vi date.sh

2. Type the following lines

#!/bin/bash touch `date +%d%b%y`.dat FILENAME=`date +%d%b%y`.dat touch $FILENAME

3. Add the execute permission

4. Run the script #./date.sh

5. Check whether file is created

show all input and output/ and show screens for every step taken . I a running the code on my terminal

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!