Search Results

Search: Posts Made By: testman84
1,322
Posted By testman84
how to list of file in home dir ?
I want to print all list of file in the home dir of the user in $i with full bath an owner and group and permissions
1,821
Posted By testman84
thanks it works
thanks it works
1,821
Posted By testman84
sorry it is cat /etc/passwd | grep "/home" |...
sorry it is
cat /etc/passwd | grep "/home" | cut -d: -f1 > USERS

I forget to write in the post but i wrote it
but it don't work
1,821
Posted By testman84
Print each user at time
I want to print each user at time and
I wrote :

cat /etc/passwd | grep "/home" | cut -d: -f > USERS
for USER in `cat USERS`
do
echo "$user"
done

but it didn't work

thanks
1,900
Posted By testman84
it works Thanks
it works Thanks
1,900
Posted By testman84
it show : find: '~jan44' : no such file or...
it show :
find: '~jan44' : no such file or director

where jan44 is the value of the $i
and i have a user with name jan44 on my system " debian" and i use bash
1,900
Posted By testman84
Home of user that is stored in var
I have a user name that is stored in variable $i
and i want to use that user's home dirctor in case command

something like this


find ~"$i" |while read p
do
case "$p" in
(...
1,958
Posted By testman84
my shell is bash ---------- Post...
my shell is bash



---------- Post updated at 05:34 PM ---------- Previous update was at 05:31 PM ----------




and "drink" is another shell text variable
I assigned via ">"
cafe tea...
1,958
Posted By testman84
search in text for string
search in text for string

I assigned text to variable
for example :
cafe tea coca > drinks
and i want to check is $i is in "drink" or not


thanks
4,845
Posted By testman84
the input will be by user like " user1 user2 ...
the input will be by user like " user1 user2 anytext "
and the out put must be like
"user1 is user "
"user2 is user "
"anytext not a user"
4,845
Posted By testman84
Check if passed arguments is users
i want to check passed arguments one by one and if it is user print home director of that user
2,255
Posted By testman84
L will try it now .
L will try it now .
2,255
Posted By testman84
and what about the second one 2- If no...
and what about the second one
2- If no arguments are give, the script should identify normal users in the system (UID >= 500) and for each user, reset files permissions as described above.
...
2,255
Posted By testman84
[ -d ~/share ] && find ~/share -type f -print0 |...
[ -d ~/share ] && find ~/share -type f -print0 | while read -d $'\0' file
do
# if $file exists and is a regular file
[ -f "$file" ] && chmod 744 "$file"
done
2,255
Posted By testman84
I am very new to Linux and this is what some...
I am very new to Linux and this is what some friend of mine give me to test what I learn
and i tried very much to solve it but till now I couldn't do anything
2,255
Posted By testman84
I have a bash script and tried very hard but i couldn't solve it please help
please can you help me with this script ( very very important )

what I'm trying is to write program that accepts list of user as its argument
1- If a user or more are given as arguments, the...
Showing results 1 to 16 of 16

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