Search Results

Search: Posts Made By: Gmoney93079
1,891
Posted By Gmoney93079
Let me ask, cause I think I understand what your...
Let me ask, cause I think I understand what your saying. In a program I wrote I am entering user information, while name is not equal to x It will echo $NAME, it will then ask for something, and...
1,891
Posted By Gmoney93079
ok, let me ask you this then, lets say I enter a...
ok, let me ask you this then, lets say I enter a users name, I read in the value, while name is not equal to x I do something, I then grep a file to search if the value of name exists in there, if so...
1,891
Posted By Gmoney93079
Im trying to understand how to do something I'm...
Im trying to understand how to do something I'm working on at work

I'm trying to read a users name from input store it in name, then enter a while loop as long as name is not equal to x, then if...
1,891
Posted By Gmoney93079
New to UNIX like 2 weeks of study only
why does this not work, confused


#!/bin/ksh
x="x"
echo "Enter a name: "
read NAME
while [$NAME != $x]
do
echo $NAME
echo
if [$NAME == $NAME]
then
echo ":"
else
echo $NAME
fi
echo...
Showing results 1 to 4 of 4

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