Results 1 to 4 of 4
• Prompt the user for the name of a folder and read the value they enter.
• Check to see if it exists in your home directory. If it does ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-19-2012 #1Just Joined!
- Join Date
- Oct 2012
- Posts
- 2
Linux Script user/file
• Prompt the user for the name of a folder and read the value they enter.
• Check to see if it exists in your home directory. If it does exist on your desktop, print a message saying so. If it does not exist, create it in your home directory.
• Move the TAR file created earlier into it
Very Confused with this.. anyone know how to make this into a script
- 10-19-2012 #2
Hi and welcome
Sorry, but homework questions shall not be answered due to the forum rules.
http://www.linuxforums.org/forum/lin...ums-rules.html
But this guide is a good reference, if you need additional info
Advanced Bash-Scripting GuideYou must always face the curtain with a bow.
- 10-19-2012 #3
Welcome to LF !
Since your question sounds like homework
I'm providing you some hints
You should be able to do that with 'read' command.• Prompt the user for the name of a folder and read the value they enter.
'if' statement with '-d' option and use 'echo' to print the message. and use 'mkdir' to create a directoryCode:• Check to see if it exists in your home directory. If it does exist on your desktop, print a message saying so. If it does not exist, create it in your home directory.
Use mv command to do this.HTML Code:• Move the TAR file created earlier into it
HTH
First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 10-19-2012 #4Just Joined!
- Join Date
- Oct 2012
- Posts
- 2
thanks alot


Reply With Quote
