-1

Can someone please help me with the following questions.

1) Create a script that will produce a text file that has a list of the files in the present working directory. Ensure you use the proper syntax to allow auto-execution from the command prompt.

Use internal documentation (comments) to place your name and the course name in the script.

2) Create a Bash script that will copy all the files in one directory to another directory. You may name the receiving directory anything you like. Ensure you use the proper syntax to allow auto-execution from the command prompt.

Use internal documentation (comments) to place your name and the course name in the script.

Votes + Comments
In violation of the "Trems of Use" you agreed to by making an account here.
6
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by moqwen
-1

Hey there,

1.

#!/bin/bash
#
# your name
# your course

ls >FILE.txt

2.

#!/bin/bash
#
# your name
# your course

cp -r dir/* newdir/*

Don't forget to chmod them at least 700 so they can be executed from the command line.

Best wishes,

, ike

Votes + Comments
Don't do other's homwowrk for them. Not only does it not help them, at all, but it is also a violation of the "Terms of Use" you agreed to by creating an account here.
0

:) Yeah - Every once and a while, I like an easy one :)

Who loses? ;)

, Mike

0

:) Yeah - Every once and a while, I like an easy one :)

Who loses? ;)

, Mike

I gained something from it...learn something new everyday!:cool:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.