Question: Section 3 : create a script name copy. sh that copies all files with extension . txt from your home directory automatically to a directory

Section 3:
create a script name copy. sh that copies all files with extension .txt from your home directory
automatically to a directory in /home/ec2-user/homebackup that is first created by the same
script.
Create a script that will ask you for your username and password. It will read your username and
password from the standard input and evaluate it like follow:
If username=zock and password=redhat then print valid user
If not print invalid user.
Create a script that will ask for your magical numbers. If your magical number id 15 or 45 then
print "you won the game" if not print "you lost the game"
Write a script that will ask for your firstname and your lastname, then it will print your fullname
Write a script that will set two variables A=10,B=20 and display the result of A+B.
Create a script which will print the numbers 1-10 each on separate line.
Write a script which will take a single command line arguments (a directory) and will print each
entry in that directory. If the entry is a file, it will print its size. If the entry is a directory, it will
print how many items are in that directory.
Create a simple script that print your current working directory and list its contents.
" Create a script that will ask for your firstname and print "hello
Section 3 : create a script name copy. sh that

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 Programming Questions!