Search Results

Search: Posts Made By: sam4now
2,086
Posted By sam4now
i quiet understand but the $1 would not show the...
i quiet understand but the $1 would not show the file name it would be part of the word.
i want to capture the last argument and at the same time able to use the rest of the arguments.
so
pimp my...
2,086
Posted By sam4now
puting arguments into varables
hello all
I am written a script that would put a line of text and a file into two different varables for later use, i.e a script called pimp with any number of words and a filename which is the...
1,799
Posted By sam4now
And pls the the remaining arguments goes into the...
And pls the the remaining arguments goes into the middle of the file and not the begining or end of it.

Thank u.
1,799
Posted By sam4now
well i cant use sed at the moment am not on that...
well i cant use sed at the moment am not on that chapter yet.

any other way would be nice. And pls can give an explanation of the code in details

Thanks
1,799
Posted By sam4now
hello have u tried d code, its not working. i...
hello
have u tried d code, its not working. i just want to get the file and rest of the argument, so that the rest of the arguments can be placed in the file

thank u
1,799
Posted By sam4now
written a srcipt with 2 arguments
hello all
pls can anybody point me a direction of capturing 2 arguments: one a line of text the other is a file.

In paticular how can i get the file

so for exampls, i create a script called...
5,442
Posted By sam4now
any other way without the sed and awk plssss
any other way without the sed and awk plssss
3,200
Posted By sam4now
yeah but i dont know about awk yet and i dont...
yeah
but i dont know about awk yet and i dont want to use things i am not fully aware of, am just reading about it.
I would love to find other means in getting the desired output.

Thanks
3,200
Posted By sam4now
what i really want is their name and each...
what i really want is their name and each individual processes such as

joe bloggs
PID TTY TIME CMD


peter jackson
PID TTY TIME CMD

baba mama
PID TTY TIME CMD
3,200
Posted By sam4now
pls can u explain this part of the code ...
pls can u explain this part of the code

`grep ":$user[,:]" /etc/passwd | cut -f1
5,442
Posted By sam4now
I kjnow the cat -n works but puting the ) after...
I kjnow the cat -n works but puting the ) after each number line is complicated bit
3,200
Posted By sam4now
firstname.surname firstname.surname...
firstname.surname firstname.surname firstname.surname
5,442
Posted By sam4now
generating line numbers
hello All

Do anybody know how to generat number line
that is puting the number of lines at the begining of a new line, with d bracket by the side
say
1)
2)
3)

any help would be nice
3,200
Posted By sam4now
Thanks for the reply era But i still get error...
Thanks for the reply era
But i still get error username not found and some of this against each user


********* simple selection ********* ********* selection by list *********
-A all...
3,200
Posted By sam4now
re
Thanks era

Have u tried the code, its not working on my mine.

I am trying to get individual online REAL NAME and not the USERNAME with thier correspondence processes. Using the etc/passwd would...
3,200
Posted By sam4now
printing each users by processes
hello All,

i am trying to get the each users by with thier processing. I have try it in several ways but i am not getting thier my code is

#!bin/bash/
users=`cat /etc/passwd | cut -d':' -f5`...
1,526
Posted By sam4now
re
thanks
i never new u could do it that way.
1,526
Posted By sam4now
any help on while loop
hi
I am trying to do this code but its not bringing any output in the while loop

while read $1 # read a file
do
grep me $1 > newfolder
cat -n < newfolder
done

any help would be nice
37,078
Posted By sam4now
re
Thanks for the reply
its not realy a file but an output .
Am actually doing this
variable1=`cat /etc/passwd | cut -d ':' -f5` #getting the username
variable2=`who` # logging user
now am...
37,078
Posted By sam4now
comparing content of 2 variables in script
hello
how can i compare the content of two variables using the if or for loops.
I have 2 variables which was formed as result of commands pass into them but i want to now compare the 2 contents and...
2,345
Posted By sam4now
help on looping using if/for or while
Hello, where can I get usefull information on the use of looping with for , if and while with extensive examples.
Also use of variables in scripts
Showing results 1 to 21 of 21

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