Search Results

Search: Posts Made By: kev112
1,909
Posted By kev112
Hi again, I'm using Suse 9.3, and I seem to...
Hi again,

I'm using Suse 9.3, and I seem to have sorted the problem with the file, I can now get it to sort by name.

If I want to sort it by number, which is the fourth field, what command...
1,909
Posted By kev112
Sort Help!
Hi again,

I have a file that I need to sort by price, which is the fourth field on each line. However the sort command I am using seems to sort half the file in order but not the rest.

Can...
3,143
Posted By kev112
sorry, I meant how to put the error trapping...
sorry,

I meant how to put the error trapping into the script. I need the script to return an error if enter is pressed and no data has been entered.
3,143
Posted By kev112
So how would i go about puting it into this: ...
So how would i go about puting it into this:

echo "Which User ID do you want to check?"
read user


grep $user /etc/passwd
if test $? -eq 0
then
echo "$user exists"
else
echo "$user is...
3,143
Posted By kev112
Error Trapping
Hi,

Can anybody tell me how to error trap an empty line. If i am asked for a password and I hit enter without entering any text, how do i display an error?

Thanks
Kev
2,878
Posted By kev112
Hi again, I can get this to work so far,...
Hi again,
I can get this to work so far, however it returns every number as a valid user. All the active users are on the server, dont know if this affects it or not.
Anybody?

echo "Which User...
2,878
Posted By kev112
I'll give it a try! Cheers Kev
I'll give it a try!

Cheers
Kev
2,878
Posted By kev112
Hi again, Still having problems with this...
Hi again,

Still having problems with this script, it works to an extent but I think im missing something.

If i enter a number, say 232435 and the user exists, it should return a message saying...
2,878
Posted By kev112
Thanks very much! Kev
Thanks very much!

Kev
2,878
Posted By kev112
Script help required!
Hi there,

i am trying to create a script that checks for the existence of users on the system, if they exist then their details should print on the screen with a message that the id is in use. I...
3,654
Posted By kev112
basic unix file command!
Hi there,

I am looking to create a single file called outputa.txt, which will show the contents of my directorya and its sub directories, and all file and directory permissions.

What command...
Showing results 1 to 11 of 11

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