![]() |
Simple menu script
Hi! Just started the old bash programming...I have got a bit stuck.
I wanted to create a menu where by a user can type the name of a file they wish to view. The problem I have is that the file doesn't seem to either get saved to the variable, isn't retrieved from the variable, or there is a problem with the file's location. The file I would want users to open is located in the same directory as the script itself. The code is as follows:- :
#!/bin/bashWould anyone be able to show me where I am going wrong? Cheers, Trufla |
Quote:
:
#!/bin/bashlook for the //<<<<<===== in my code to show you what i did and it works fine now :) |
Brill!
Trufla |
| All times are GMT -5. The time now is 5:19 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC