Search Results

Search: Posts Made By: radioactive9
3,783
Posted By disedorgue
Hi, Grep is not adapted for this request,...
Hi,
Grep is not adapted for this request, because it can not suppress many characters of global regex (in red from example):
$ echo $formula
*IF ( ( *VALUE NT_System.Operating_System_Version *EQ...
3,783
Posted By RavinderSingh13
Hello radioactive9, Could you please try...
Hello radioactive9,

Could you please try following codes, I am sure they may help you.
Code1 :

echo $formula | awk -F"*AND"...
3,783
Posted By disedorgue
It's normal, because '\w' is equivalent as...
It's normal, because '\w' is equivalent as '[[:alnum:]_]', so this below work with your input and should work in other case (not tested for other case):
grep -o "[^ ]*\.[^ ]*...
3,783
Posted By disedorgue
To take account the last case: grep -o...
To take account the last case:
grep -o "\w*\.\w* \*\(EQ\|LT\|LE\|GT\|GE\) \([^ ]*\|( *[^ ]* *)\|'[^']*'\)" fileRegards.
3,783
Posted By RavinderSingh13
Hello radioactive9, I have given previous...
Hello radioactive9,

I have given previous command as per your input and it worked for me as follows.
Input_file:

cat test18
*IF *VALUE System.Page_Scan_Rate *GE 500
*IF *VALUE...
3,783
Posted By disedorgue
With (gnu) grep: grep -o "\w*\.\w*...
With (gnu) grep:
grep -o "\w*\.\w* \*\(EQ\|LT\|LE\|GT\|GE\) \([^ ]*\|( *[^ ]* *)\)" file

Regards.
3,783
Posted By RavinderSingh13
Hello radioactive9, Could you please try...
Hello radioactive9,

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

awk...
3,783
Posted By disedorgue
No, It' s not work fine for line 4 and 7, so i...
No, It' s not work fine for line 4 and 7, so i corrected by:
sed -nr 's/^[0-9.,]*//;:b;s/G[TE] *([0-9.]+)/\n\1/;tb;:c;s/([0-9.,]*)[^\n]*\n/\1,/;tc;s/,//;s/^([0-9.,]*).*/\1/;p'

Regards.
3,783
Posted By RavinderSingh13
Hello radioactive9, Could you please try...
Hello radioactive9,

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

awk -vs1="GE" -vs2="GT" '{for(i=1;i<=NF;i++){if($i ~ s1){A[NR]=A[NR]?A[NR] OFS $(i+1):NR OFS $(i+1)};if($i ~...
3,783
Posted By disedorgue
With this modification, it works better: $ echo...
With this modification, it works better:
$ echo $formula | sed -nr 's/^[0-9.,]*//;:b;s/G[TE] *([0-9.]+)/\n\1/;tb;:c;s/([0-9.,]*)[^\n]*\n/\1,/;tc;s/^[^0-9]*|[^0-9]*$//gp'
2,463
Posted By balajesuri
[user@host ~]$ cat file [26/Jan/2014:09:47:34...
[user@host ~]$ cat file
[26/Jan/2014:09:47:34 +0000] "GET /etc/designs/dlg/clientlibs/commons/base/img/close-icon.png HTTP/1.1" 500
[26/Jan/2014:09:47:34 +0000] "GET...
23,562
Posted By frappa
Hi, in order to intercept errors during the...
Hi,

in order to intercept errors during the connection stage in expect, I generally use a "default" behaviour that makes expect to exit with a custom error code, like in the code fragment shown...
23,562
Posted By frappa
Hi, have you tried your script by calling it...
Hi,

have you tried your script by calling it manually and performing a simple command instead of password change? i.e. you can try to simply ls the content of the home directory just to see in the...
Showing results 1 to 13 of 13

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