| | |
Linux Bash Script
![]() |
•
•
Join Date: Feb 2008
Posts: 4
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Oct 2007
Posts: 399
Reputation:
Solved Threads: 47
Hey there,
1.
2.
Don't forget to chmod them at least 700 so they can be executed from the command line.
Best wishes,
, ike
1.
Shell Scripting Syntax (Toggle Plain Text)
#!/bin/bash # # your name # your course ls >FILE.txt
2.
Shell Scripting Syntax (Toggle Plain Text)
#!/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
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
•
•
Join Date: Oct 2007
Posts: 399
Reputation:
Solved Threads: 47
Yeah - Every once and a while, I like an easy one 
Who loses?

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
•
•
Join Date: Jan 2009
Posts: 1
Reputation:
Solved Threads: 0
Do your home work. Spend some time on the
linux bash shell scripting guide.
linux bash shell scripting guide.
Last edited by moqwen; Jan 14th, 2009 at 12:56 pm. Reason: forgot link
![]() |
Similar Threads
- Please need help with bash script (Shell Scripting)
- how to test a software program on linux (C)
- how to Upload files using Linux bash Shell scripting and CGI (Shell Scripting)
- Linux Shell Script needs help writing program (Shell Scripting)
- Bash script prob (Kernels and Modules)
- Linux Shell Script (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: Echo command ASCII characters-batch scripting
- Next Thread: some useful ksh commands
| Thread Tools | Search this Thread |






