Search Results

Search: Posts Made By: niki22
Forum: Solaris 11-23-2009
2,561
Posted By niki22
File system - question?
Hello,

I have few questions about file system in Unix and Linux.

1. What's the difference between Unix and Linux in their file system? Are they the same?

2. Is in Unix directory for...
2,491
Posted By niki22
It's send me new error: #!/bin/bash until...
It's send me new error:

#!/bin/bash
until [ "${op}" -ne 2 ]
do
echo "Select from menu:"
echo "1. Print Text"
echo "2. Exit"
read q

case $q in
1) echo "Hello...
2,491
Posted By niki22
Need Help for "until" construction
Hello Unix guru's !!!

I have problem with this simple script:

#!/bin/bash
clear;
op = 0
until [ $op -ne 2 ]
do
echo "Select from menu:"
echo "1. Print Text"
echo "2. Exit"
...
2,544
Posted By niki22
Thanks!!!
Thanks!!!
2,544
Posted By niki22
Nothing happens. #!/bin/bash wa=$(whoami)...
Nothing happens.

#!/bin/bash
wa=$(whoami)
if ["$wa"= user]; then
echo "I am: $wa"
else
echo "Who are you?"
fi

Result:

user@user-desk:~$ ./sc.sh
./sc.sh: line 3: [user=: command not...
2,544
Posted By niki22
Need Help.
Hello

I am new in linux scripting. I have problems with this script:

Why "wa" is not equal to "user" when I am login in my terminal like user?

How to get wa equal to "user"?

Thanks
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy