Search Results

Search: Posts Made By: courteous
25,371
Posted By joeyg
You can sort on any field, or sort defaults to...
You can sort on any field, or sort defaults to starting at the left.
So, you an keep in the current layout of three (or more/less) fields, and then work with the various sort options. You would...
25,371
Posted By purdym
First you need the processes and the information...
First you need the processes and the information you want, then you have to format the output.

On HP-UX I use:

export UNIX95=1
ps -efH -o pcpu,user,nice,cpu,pid,args | grep -vE "^...
25,371
Posted By joeyg
What about something like: ps -eo pid,comm,%cpu...
What about something like:
ps -eo pid,comm,%cpu | awk '{OFS="|"; print $1,$2,$3}'
which would then get you a file with '|' character to use as a field separator.
That might make it easier to sort,...
2,304
Posted By Klashxx
It means any character so will match the...
It means any character so will match the parentheses .
2,304
Posted By verdepollo
Yup... you can also use wildcards: find...
Yup... you can also use wildcards:

find -name "oos*.txt"
2,304
Posted By Corona688
In POSIX regular expressions, modifiers like *...
In POSIX regular expressions, modifiers like * need a character before them to describe what they're modifying. . is a special character meaning 'match any character'. So .* means 'match any number...
2,304
Posted By joeyg
unsure of the -regex
However,
$ find . -name 'oos*.txt'
./oos.txt
./oos_(copy).txt
works.

p.s. I did try your command, and did re-create the oddity you described. Just not sure about the -regex as part of a find...
Forum: Programming 01-10-2011
3,990
Posted By Corona688
check if 'hello' actually ended up in System.map ...
check if 'hello' actually ended up in System.map

And just to rule out the obvious you did reboot into your new kernel yes?
Forum: Programming 11-09-2010
14,797
Posted By Corona688
I see! In which case you might find man 2...
I see! In which case you might find man 2 syscall a better way to do arbitrary syscalls. I've certainly never managed to get _syscall3 and the like to work...
2,579
Posted By jim mcnamara
I don't see a for or a while loop in your ping...
I don't see a for or a while loop in your ping command.
Instead of grep what about this

# filename is a file with a list of nodes or ip addresses
while read n
do
( ping -c 1 $n | tr -d '\n'...
8,207
Posted By Scott
You could (probably!) say: ping .... |...
You could (probably!) say:


ping .... | grep ECHO_REPLY && break

But I'm not really understanding why you have a for-loop in the first place to ping the same thing 30 times...
8,207
Posted By Scott
Hi. I think that should be $i, not $1 in...
Hi.

I think that should be $i, not $1 in your ping command. But -t is used to set a ping timeout.

According to the man page on my system -R is used to record the route. You might also want to...
Showing results 1 to 12 of 12

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