Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

What questions should Anna ask of Jessica?

Answered: 1 week ago