![]() |
|
|
#1 |
|
Jan 2007
Germany
3×239 Posts |
Hello PFGW programmers !
Is it possible to create a special PFGW for me ? I need a feature, that PFGW write only numbers in pfgw.log, if ALL conditions are 3-PRP ! Example: ABC $a+0 & $a+2 & $a+6 & $a+12 & $a+14 & $a+20 & $a+24 & $a+26 281809744377742937 280807944730632017 276808166894198957 .... pfgw.log Output-File 276808166894198957 I need it so urgent :-) regards Norman |
|
|
|
|
|
#2 | |
|
Sep 2002
Database er0rr
5·937 Posts |
That syntax would clash with:
Quote:
|
|
|
|
|
|
|
#3 |
|
Mar 2006
Germany
2·1,531 Posts |
Use awk (gawk for WIN):
create file list.awk with code: Code:
BEGIN {line=$0}
{
if (index($0,"Complete Set"))
print substr(line,1,index(line,"+")-1)
line=$0
}
Code:
gawk -f list.awk pfgw.out Your example will output only one line with 276808166894198957. PS: For redirecting the output call Code:
gawk -f list.awk pfgw.out >out.txt Last fiddled with by kar_bon on 2021-09-09 at 12:01 Reason: redirect |
|
|
|
|
|
#4 |
|
Jan 2007
Germany
3·239 Posts |
@kar_bon
This is what I do, but PFGW should be only write a minimum to pfgw.log...only $a's for passing all conditions. (Also das mache ich ja , aber PFGW schreibt zu viel bei kleinen Zahlen auf die Festplatte, soll aber nur dann in die pfgw.log schreiben, wenn alle Bedingungen erfüllt sind.) |
|
|
|
|
|
#5 |
|
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
614110 Posts |
This would be a nice feature but far from necessary as there are workarounds. If I recall correctly the code implementing this sort of thing is a mess in PFGW and rogue has avoided playing with it much.
I personally just grep for the last form. If you wanted to avoid the large output you could write a pfgw script. Last fiddled with by rogue on 2021-09-09 at 15:22 |
|
|
|
|
|
#6 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
The pfgw code is messy. It uses (and abuses) many C++ features. My intent is to rewrite it in the future so that it is easier for me to support. Whether or not I ever get around to it is a separate question as it will require a lot of planning.
|
|
|
|
|
|
#7 |
|
Jan 2007
Germany
2CD16 Posts |
Can I hope for it ?
Maybe with "pfgw64 -N -f0 -oac input.txt" or so. oac = only all conditions |
|
|
|
|
|
#8 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Am I missing something | Youjaes | Forum Feedback | 18 | 2021-03-04 14:21 |
| Missing top 10? | R.D. Silverman | GMP-ECM | 3 | 2011-03-18 21:35 |
| PFGW 3.3.6 or PFGW 3.4.2 Please update now! | Joe O | Sierpinski/Riesel Base 5 | 5 | 2010-09-30 14:07 |
| Missing from Stats? | ColdFury | NFSNET Discussion | 1 | 2005-02-18 09:27 |
| missing? | tha | Data | 6 | 2003-09-14 21:36 |