Search Results

Search: Posts Made By: barbus
7,883
Posted By barbus
Feels like self learning more than anything, plus...
Feels like self learning more than anything, plus I am a special case I use to work in their web development section using .NET, so I request a change in departments to do something more...
7,883
Posted By barbus
I did ask why I can’t use SED and AWK, the answer...
I did ask why I can’t use SED and AWK, the answer I got and I quote “we want our trainee's to learn more about the operating system to start with, and when we feel that you’re comfortable with...
7,883
Posted By barbus
Sorry if I caused confusion on what I am trying...
Sorry if I caused confusion on what I am trying to achieve
1) I need to find out users currently logged on to the system.
2) I need to find out what processes they are running.
3) I need to print...
7,883
Posted By barbus
thx again, its work, but i am not allowed to use...
thx again, its work, but i am not allowed to use awk :o

there must being a simpler way to view logged in users and what processes they are running :confused:
7,883
Posted By barbus
thx again. how would i feed the usernames of...
thx again.

how would i feed the usernames of the currently logged in users to the userID variable?
7,883
Posted By barbus
here are a few line from the /etc/passwd ...
here are a few line from the /etc/passwd

jasmeet.manik:x:1422:100:Jasmeet Manik:/home/jasmeet.manik:/bin/bash
pascal.morano:x:1423:100:Pascal Morano:/home/pascal.morano:/bin/bash...
7,883
Posted By barbus
yay it works, thank you vgersh99 :D
yay it works, thank you vgersh99 :D
7,883
Posted By barbus
thx for the quick reply now i get ...
thx for the quick reply

now i get

userID->[] username->[uucp]
7,883
Posted By barbus
am bit confused on what junk does here :confused:...
am bit confused on what junk does here :confused:

am getting this

userID->[] username->[Michael Jackson]

and its printed for all users, and there is no useID

is junk used to ignore or...
7,883
Posted By barbus
cool, thx man :b: I have a question though,...
cool, thx man :b:

I have a question though, this programme will be ran by a few people, if one of those people where to change a process name or amend a users name, will this outcome be effected?
7,883
Posted By barbus
that did the trick thx, now i guess i must link...
that did the trick thx, now i guess i must link the the user IDs to the name some how :eek:
7,883
Posted By barbus
Processes and Users
Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O

I need to write a script...
13,282
Posted By barbus
that help me out a LOT, thank you, thank you all...
that help me out a LOT, thank you, thank you all :b:
13,282
Posted By barbus
i assume he is doing this, because he wants me to...
i assume he is doing this, because he wants me to grasp some concepts, he did say i can use sed and awk once am confirtable doing stuff without them :rolleyes:

i have only being using unix for...
13,282
Posted By barbus
i have to start someware ;)
i have to start someware ;)
13,282
Posted By barbus
I started working here last week, and it’s a...
I started working here last week, and it’s a trainee position, where I am expected to under take a course which is involves doing these tedious tasks as part of the job, my boss is kinda my teacher,...
13,282
Posted By barbus
how would i search the strings like rwxr-wr--, or...
how would i search the strings like rwxr-wr--, or put it in a variable. if i can achieve this i can just search the string for certain characters and print out statment based on those characters.
13,282
Posted By barbus
I could do this easy with awk, but my...
I could do this easy with awk, but my unreasonable employer wont let me use with awk or sed :(.

He wants a simple script to view it with yes no so other non IT related departments can understand...
13,282
Posted By barbus
file permissions using shell scripting
Hi
I am trying to use shell script to display file permissions, and I can do it fine for the current user logged in, but now I want to view all file permissions for the Owner of the file, Group...
13
3,262
Posted By barbus
thanks everyone for your help it works like a...
thanks everyone for your help it works like a charm now. :D
13
3,262
Posted By barbus
ok i am using this now, it works fine, but all i...
ok i am using this now, it works fine, but all i need to do is restrict the lines shown by a user, so am trying it with $USER for now.

#!/bin/bash/

x=0
while read line
do
x=$((x+1))
echo...
13
3,262
Posted By barbus
if it was only that simple porter :cool: if...
if it was only that simple porter :cool:

if am not using SED or Awk, i have no idea what am doing in these situations.
13
3,262
Posted By barbus
Trying out grep and am confused as hell I am...
Trying out grep and am confused as hell
I am using $user to save time.
Is this a valid method? xx is the file with contents

grep –i xx $user

So form what am reading I need to use pipes...
13
3,262
Posted By barbus
This is looks like something I can :) I have...
This is looks like something I can :)

I have a question though, the “while read line” statement, how does this get information from the file, is it from this “done < "file"”?.

sorry if am...
13
3,262
Posted By barbus
Assume xx is the file with the relevant contents....
Assume xx is the file with the relevant contents.
#!/bin/bash
Lines = wc-l << xx /* the number of lines from the file */
Number=0
while (($Number > $lines+1))
do
Number=$(($Number+1)) ...
Showing results 1 to 25 of 31

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