Search Results

Search: Posts Made By: kingkner
3,879
Posted By Corona688
Do not post classroom or homework problems in the...
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-coursework-questions/) under special...
3,879
Posted By Corona688
Is this homework?
Is this homework?
10,587
Posted By Franklin52
@ping2, please start a new thread for your...
@ping2, please start a new thread for your question next time rather than post it in an existing thread! Thanks.

Regarding your question you can try this:
if (( $a % 5 == 0 ))
then
echo "$a...
10,587
Posted By fpmurphy
Are you trying to see if a group already exists? ...
Are you trying to see if a group already exists? If so, try this:

read -p "enter group name: " group
if grep -q $group /etc/group
then
echo "group exits"
else
echo "group not exits"...
10,587
Posted By agama
You have a syntax error. The double semicolons...
You have a syntax error. The double semicolons are not needed at the end of your fi

I also don't know about your version of id, but the one installed on my version of linux accepts a -g option,...
Showing results 1 to 5 of 5

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