Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started