Need bash scripting done
- or -
Post a project like this400
$15
- Posted:
- Proposals: 6
- Remote
- #3855963
- Awarded
Quick Graphic Designer + Animator + Video Editor + Photo Editor + Logo Designer + Autocad Designer
Sydney
509689050794116476906844866684637788630262
Description
Experience Level: Intermediate
Script 1:
1. Perform a Is -al on the files within the user's home directory and save it to a file called
Is.dat within your ~ directory
2. Save the tree information for the /home directory in a file called tree.dat within your ~directory
3. Create a new directory in your home directory called "backups"
4. Move the files you just created to the new directory
5. Rename the files that you just moved to "Is.bu" and "treebu".
Script 2:
1. Ask the user for their name
2. Create a file called "daily.dat" within the home directory
3. Ask the user for a line of text that the system should save to the file
4. Add to the file the line of text entered by the user
5. Ask the user for a second line of text that the system should save to the file
6. Append at the end of the file the line of text entered by the user
7. Create a copy of the file in the directory "backups" within the home directory, renaming the file daily.bu.
Script 3:
1. Ask the user for a file's name
2. If the file exists, ask them if they would like to (C)gRY, (M)ove, or (D)elete it by choosing C, M, or D
3. If the user chooses C, ask for the destination directory and move it there
4. If the user chooses M, ask for the destination directory and move it there
5. If the user chooses D, delete the file.
For Script 3 ensure that the user enters only C, M, or D, warning them about the mistake if they should enter something else.
You will turn in three shell scripts named "ScriptI.sh", "Script2.sh", and "Script3.sh".
You should copy and paste all three scripts into a single Word document and attach that document to your Blackboard submission.
Do not submit your work as a zip file or any proprietary MAC format, or Google Doc.
If you do not have Word available, then use a simple text document (.txt)
1. Perform a Is -al on the files within the user's home directory and save it to a file called
Is.dat within your ~ directory
2. Save the tree information for the /home directory in a file called tree.dat within your ~directory
3. Create a new directory in your home directory called "backups"
4. Move the files you just created to the new directory
5. Rename the files that you just moved to "Is.bu" and "treebu".
Script 2:
1. Ask the user for their name
2. Create a file called "daily.dat" within the home directory
3. Ask the user for a line of text that the system should save to the file
4. Add to the file the line of text entered by the user
5. Ask the user for a second line of text that the system should save to the file
6. Append at the end of the file the line of text entered by the user
7. Create a copy of the file in the directory "backups" within the home directory, renaming the file daily.bu.
Script 3:
1. Ask the user for a file's name
2. If the file exists, ask them if they would like to (C)gRY, (M)ove, or (D)elete it by choosing C, M, or D
3. If the user chooses C, ask for the destination directory and move it there
4. If the user chooses M, ask for the destination directory and move it there
5. If the user chooses D, delete the file.
For Script 3 ensure that the user enters only C, M, or D, warning them about the mistake if they should enter something else.
You will turn in three shell scripts named "ScriptI.sh", "Script2.sh", and "Script3.sh".
You should copy and paste all three scripts into a single Word document and attach that document to your Blackboard submission.
Do not submit your work as a zip file or any proprietary MAC format, or Google Doc.
If you do not have Word available, then use a simple text document (.txt)
Yash P.
100% (9)Projects Completed
4
Freelancers worked with
2
Projects awarded
71%
Last project
6 Dec 2022
India
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies