I just that and I came out with this code
change_directory () {
read -r -p 'please enter your directory ' dir
if [ -d "/$dir" ]
then
cd "/$dir"; echo...
Type: Posts; User: cowsquad; Keyword(s):
I just that and I came out with this code
change_directory () {
read -r -p 'please enter your directory ' dir
if [ -d "/$dir" ]
then
cd "/$dir"; echo...
thank you very much for your explanation. I do get your code, What I dont get is: How do I create a condition that would state that $dir is in my Home directory?
I have tried if [ $dir = $HOME ];...
HOMEWORK ASSIGNMENT
I am creating a bash Menu script that would prompt a user to select options. Option 4 is for changing directory. I have accomplished this by using the following:...
Well, I just installed Ubuntu 11.0 4 then I set up my login to automatic, it turns down that every time I go to USER ACCOUNTS and try to unlock, a windows pops out and asks for my password, I input...