Search Results

Search: Posts Made By: felixwhoals
1,990
Posted By felixwhoals
I need it to be --LL- Thanks.. Hopefully you...
I need it to be --LL-

Thanks.. Hopefully you can help
1,990
Posted By felixwhoals
Matching character
Alright, I am stuck here.

I have this variable that stores the word = HELLO and I have converted it it to -----
I have asked user to input one character at a time. SAy, if they enter E....
3,935
Posted By felixwhoals
Condition test
Hi there,

When I try to do a condition on test:
$ str1=abcd
$ test $str1
$ echo $?
0
Is there anyway to display the answer to be 'TRUE' or 'YES'? rather than 0?
If so, how can I do it...
2
2,505
Posted By felixwhoals
How does finger | tail +2 work? It gives me an...
How does finger | tail +2 work?
It gives me an error.
I don't want to use awk, I want to try and use finger and supress the heading.
2
2,505
Posted By felixwhoals
finger
Is there any possible way to get rid of the header when I do finger ?

I want to get rid of
Login Name Tty Idle Login Time Office Office Phone
as the header.
...
2,025
Posted By felixwhoals
Grep problem
Hi there, this is a very simple question.

When I do grep -c "PWD" filename, I get 5. This means the filename contains 5 lines of "PWD" occurence.

I tried to assign to a variable. int= grep -c...
1,708
Posted By felixwhoals
Testing permission
One question to test the permission

I know test commands give us:
test -w filename - to test if file exists and writeable
test -x filename - to test if file exists and executable
test -r...
5,154
Posted By felixwhoals
Add line command
What command should I use to add a line after a text?
I don't want to do it in vi.
echo ra > na
echo ras >> na
when I type cat na, it displays
ra
ras

How can I display it:
ra

ras...
70,539
Posted By felixwhoals
THANKS so much!! You really helped me with SIMPLE...
THANKS so much!! You really helped me with SIMPLE and easy code!!
70,539
Posted By felixwhoals
yes. ps -au `head -1 abc` where head -1 abc...
yes.

ps -au `head -1 abc` where head -1 abc gives me an argument (username) and then I could use it to get the process running for the current username.

Do you know the way to fix it?
70,539
Posted By felixwhoals
So this cannot be solved without awk and sed? I...
So this cannot be solved without awk and sed? I do not want to use these two commands because I want to use the long way to do it. Do you have another solution without using awk?
70,539
Posted By felixwhoals
ps question
This is quite a simple question I have a file with my username in it.
So if I type cat filename, I get felix.whoals
TO show the current process that I am doing, I need to type ps -au felix.whoals ...
70,539
Posted By felixwhoals
Well because when I do head -1 abc it gives me a...
Well because when I do head -1 abc it gives me a username. therefore when I do ps -au head -1 abc, I should get an answer shouldn't I?

May I know how can I solve this problem?
70,539
Posted By felixwhoals
Hi there, I have a question, when I do ps...
Hi there,

I have a question, when I do ps -au xxx, I get an answer for user xxx.. I have a filename call abc and when I do head -1 abc i get an output of xxx too. Why can't I do ps -au head -1 abc?
70,539
Posted By felixwhoals
Displaying current user process
When I typed in ps -a I get this:

PID TTY TIME CMD
31799 pts/3 00:00:00 vim
31866 pts/3 00:00:00 vim

And to check who is currently logged in, I type who
Felix Whoals
Tada Whoals
Lala...
1,625
Posted By felixwhoals
Permissions output
Hi there,

One question on displaying the output for permissions.
Ok, when I put ls -l filename
I get something like this:
-rw-r--r-- 1 read.read users 359 Dec 16 13:19 filename

How do I...
2,350
Posted By felixwhoals
List of Occurence
thanks for that. I am stuck with this too:
I have done this command env >> filename for 3 times.
I am writing a script to append the PWD, USER, MAIL, LOGNAME, HOME into something like this:
1)...
2,350
Posted By felixwhoals
Simple Scripting Problem
Hi there,

I was trying to add a line of text in the middle line of a file.

I have counted the lines in the file, and then I divide it into 2, after that I am stuck on how am I suppose to...
Showing results 1 to 18 of 18

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