Search Results

Search: Posts Made By: nadman123
3,237
Posted By nadman123
A comparison of the multi-user facilities in Unix and Microsoft Windows.
hi guys
just give me some information about multi user facilities that unix offer in cmparison to windows.
Thanx
1,339
Posted By nadman123
Help !!!!
perms=`ls -l "$1" | cut -f1`
perms=${perms#?}
for role in user group other; do
what=none
case $perms in
r??*) what=read;;
esac
case $perms in
?w?*) what="$what"${what:+",...
2,165
Posted By nadman123
thanks guys
thanks very much :p:p:p:):):)
2,165
Posted By nadman123
Problem in getopts
while getopts l:f:s:o:h: c
do
case $c in
l) tail -${OPTARG} /etc/passwd
exit 2;;
f) head -${OPTARG} /etc/passwd
exit 3;;
s) grep ${OPTARG}...
2,897
Posted By nadman123
thanks but one more question
thanx a lot era and repudi8or..but i ve got a problem in case..
will i be able to get to conditions in one line..
like if a file has rx for the group
i want to have the out put to be read, execute...
2,897
Posted By nadman123
Can the result from this be used as a variable..I...
Can the result from this be used as a variable..I mean if a file has following permissions
rwxr-xr--
I want the output to be:
this file has the following permissions:-
Read, Write and Execute for...
2,897
Posted By nadman123
help please!!!!
how do you get the file permissions to strings
like rwx------ read,write,executable to users
2,398
Posted By nadman123
whats wrong with this code
ls -ld | grep $1 /etc/passwd | cut -d: -f6

i need see the content...
1,678
Posted By nadman123
it does work thanks alot buddy cheers problem...
it does work thanks alot buddy
cheers
problem solved:):):):):):):):)
1,678
Posted By nadman123
you mean to replace $1 with $OPTARG ?
you mean to replace $1 with $OPTARG ?
1,678
Posted By nadman123
i m refering to options in the case tail -$1...
i m refering to options in the case
tail -$1 /etc/passwd

thanks
1,678
Posted By nadman123
need help
if [ $# = 0 ]
then
echo "$USAGE"
exit 1
fi

while getopts lfso: c
do
case $c in
l) tail -$1 /etc/passwd
exit 2;;
f) head -$1 /etc/passwd
...
2,545
Posted By nadman123
tell me whats wrong with this
#! /bin/bash
USAGE="[[-a ] | [-b]]
if [ $# = 0 ]
then
echo "$USAGE"
exit 1
fi

while getopts lb: OPTION
do
case $(OPTION)in
a) echo Hi there!
exit 2;;
b)...
7,481
Posted By nadman123
doesnt work:(
doesnt work:(
7,481
Posted By nadman123
guys this is what i wanted to do.. when i run...
guys this is what i wanted to do.. when i run this script i am actually typing a username and script will display the permissions of that users home directories..this what i got so far but it...
7,481
Posted By nadman123
please reply anyone!!!:o
please reply anyone!!!:o
7,481
Posted By nadman123
how to display the permission of the home directory
can anyone tell me how to display the permissions of a users home directory.
can i use ls -l but it only gives the permissions of the files and directories inside the...
3,596
Posted By nadman123
yeah i got the answer:):):):):)
yeah i got the answer:):):):):)
3,596
Posted By nadman123
display pathname of the login shell
can anyone tell me how to check/display pathname of the login shell used by a particular user?
2,125
Posted By nadman123
thanks guys you guys are awsome
thanks guys you guys are awsome
2,500
Posted By nadman123
tell me whats wrong in this?
#! /bin/bash
head -5 $1
echo "remove $1 ?"
read answer
if ["$answer"=""]
then
echo invalid answer
elif["$answer"="y"]

rm $1
echo "$1 is deleted"
elif["$answer"="n"]
then
echo file...
2,125
Posted By nadman123
how do you get input of a file to calculations
ex:-
say you have a file called numbers.txt . and in it you have the following numbers
12
75
74
24
83
how do you get the sum of all those numbers?
2,945
Posted By nadman123
Please write this script for me
UNIX shell script (Bourne shell syntax) called
admin_script. This script is described below as a usage summary:
admin_script [ -l n ] [ -f n ] [ -s username ] [ -d username ]
[ -b username yyyymm...
Showing results 1 to 23 of 23

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