Search Results

Search: Posts Made By: nextStep
1,656
Posted By Scrutinizer
You could try: zgrep -B1 "Failed to calculate...
You could try:
zgrep -B1 "Failed to calculate US Tax" log-gr_base.log.2018-05-08.gz | grep "CartService" | grep -Eo '.{4}-.{2}-[^]]*|[[:upper:]]{2}:[[:upper:]]{2}:[[:upper:]]{2}[[:digit:]]{6}' or...
1,656
Posted By RavinderSingh13
Hello nextStep, Following awk may help you...
Hello nextStep,

Following awk may help you on same too.

awk 'match($0,/UA:MP:[a-zA-Z]+[0-9]+/) && !a[substr($0,RSTART,RLENGTH)]++{sub(/\[/,"",$1);sub(/\]/,"",$2);print...
1,656
Posted By RavinderSingh13
Hello nextStep, Following is the explanation...
Hello nextStep,

Following is the explanation may help you on same.


awk '
match($0,/UA:MP:[a-zA-Z]+[0-9]+/) && !a[substr($0,RSTART,RLENGTH)]++{ ##Using match utility of awk to match REGEX...
1,656
Posted By RavinderSingh13
Hello nextStep, Could you please try...
Hello nextStep,

Could you please try following and let me know if this helps.

awk 'match($0,/UA:MP:[a-zA-Z]+[0-9]+/) && !a[substr($0,RSTART,RLENGTH)]++{print substr($0,RSTART,RLENGTH)}' ...
1,203
Posted By bakunin
This is less trivial than it seems to be. A...
This is less trivial than it seems to be. A process can have several types of memory allocated:

1) real memory
This is real RAM the process uses.

2) virtual memory
This is real memory as...
1,203
Posted By Scrutinizer
Instead of: ps aux | grep xx try: ps aux |...
Instead of:
ps aux | grep xx
try:
ps aux | grep '[x]x'
To ensure the grep process itself isn't one of the processes being matched.
1,203
Posted By vgersh99
RAMUsage=$(ssh $i "ps aux | grep xx| awk...
RAMUsage=$(ssh $i "ps aux | grep xx| awk '{sum+=\$6};END {print sum/1024" MB"}'")what's the \ for?
also:
ps aux | grep xx
16777248 26166 0.0 0.0 103324 844 pts/0 R+ 10:20 0:00 grep xx...
1,500
Posted By jim mcnamara
There is no expiry date in a a java module. Here...
There is no expiry date in a a java module. Here is why -

java gets updated periodically. However, when there is a bad flaw found that nobody knew about, java will updated at that point in time...
3,262
Posted By Corona688
You originally posted one field per line, not one...
You originally posted one field per line, not one record per line. You specifically said each field was separated by a newline, also.

Obviously, they are not. Modify my code to: #!/bin/sh
...
2,065
Posted By apmcd47
I'm confused. On my Ubuntu 16.04 (Xenial) system...
I'm confused. On my Ubuntu 16.04 (Xenial) system the find options you use (i.e. -printf %Tc %p\n produces
DDD dd mmm YYYY HH:MM:SS ZON /path/to/file
Seven fields. You then pipe through an awk...
1,078
Posted By RudiC
Welcome to the forum. As parentheses have a...
Welcome to the forum.

As parentheses have a special meaning in regular expressions, you need to escape them, in this case and on my system with TWO back slashes: \\(
Is it possible to allow for a...
Showing results 1 to 11 of 11

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