Search Results

Search: Posts Made By: switchkill
9,621
Posted By switchkill
<CODE> #! /bin/ksh clear echo "Enter...
<CODE>
#! /bin/ksh

clear
echo "Enter location of home directory"
echo
read home
if [ ! -d ${home} ]; then

echo
echo "**********************************************"
echo "*The...
9,621
Posted By switchkill
I fuond out why i was crap ver=`grep ${ACCT}:...
I fuond out why i was crap ver=`grep ${ACCT}: "/etc/passwd"

was not closed.

Thanks for the comment on using just the ACCT="${ACCT}1"
that cut donw some lines.

But now i have another...
9,621
Posted By switchkill
While loop in a nested if returns 'do unmatched'
I have a file called /ACCT/users that holds information on accounts to be created line by line.

I'm trying to create accounts and change the password to a generic password.

I want to probe...
1,942
Posted By switchkill
I'm trying to understand the modification of the ...
I'm trying to understand the modification of the

${group%:*}

to reverse it so i only the the ID portion of the select instead of the group name.
1,942
Posted By switchkill
Hey thatnks for that guys works good. It...
Hey thatnks for that guys works good.

It didn't work the first time i tried it then i worked out the selcet is only in the ksh and i was running sh.

thanks again
1,942
Posted By switchkill
I'm sorry i have only been at this for a week and...
I'm sorry i have only been at this for a week and i have no idea what you mean.
1,942
Posted By switchkill
Selectable numeric text menu from file possible?
Is there a way i can take 'lets say the etc/group file' and arange the group names into a selectable numeric menu eg;

1) root:0
2) other:1
3) bin:2
4) sys:3
.....
.....
.....
and so on
...
2,267
Posted By switchkill
I can't thank you enough for the help Dragon. ...
I can't thank you enough for the help Dragon.

You have saved my sanity.

Cheers.
2,267
Posted By switchkill
Isn't a shell found on a beach? Need help nesting if's or loops.
As of a week ago i thought a shell was somthing found on a beach.

I'm a virgin when it comes to scripting and i'm having a really bad time here.

What i need to do is prompt for a group number...
Showing results 1 to 9 of 9

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