mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2017-02-08, 19:09   #1
MisterBitcoin
 
MisterBitcoin's Avatar
 
"Nuri, the dragon :P"
Jul 2016
Good old Germany

811 Posts
Default Feature request (srfile)

Hi folks,

I have a quick request about an new feature fro srfile.

Print out k´s from a sieve file.


This could make it easier for me to provide an remaining file after prp-testing on Bases 7,15 and later S3. (And every other Base. :))
MisterBitcoin is offline   Reply With Quote
Old 2017-02-08, 22:54   #2
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

130016 Posts
Default

I use:
grep "*" prpfilename > ks_in_file

In the abcd file, the header lines showing the k-values are written as k*base^n, so looking for the asterisk or the carrot will print only the lines with the k's.
VBCurtis is offline   Reply With Quote
Old 2017-02-09, 04:19   #3
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

100101101001012 Posts
Default

I use srfile combined with programmer notepad (pn2), or notepad++, both have very strong regular expressions search-and-replace (I could use perl, but I like to see interactive on screen how the files are slain , and use ctrl+z to undo if I wrote a stupid regex by mistake). In few seconds you hack your file to what you need, and then use srfile to eliminate the k's or whatever.
LaurV is offline   Reply With Quote
Old 2017-02-09, 18:21   #4
MisterBitcoin
 
MisterBitcoin's Avatar
 
"Nuri, the dragon :P"
Jul 2016
Good old Germany

81110 Posts
Default

I also use Notepad++, which is great for a lot of stuff.
The file I want to work at is 70K lines big, from 853 single sequences.

srfile can detect the amount of sequences but can´t print them into a file.
Thats all I want. :)

@Curtis

That will print every k-value with out the "*b^n+1"-part.
MisterBitcoin is offline   Reply With Quote
Old 2017-02-09, 18:52   #5
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

486410 Posts
Default

Sorry, my instructions were incomplete; I first convert the file to srsieve.out format, which has the complete k-base-to-the-n line for each k.
VBCurtis is offline   Reply With Quote
Old 2017-02-09, 19:12   #6
MisterBitcoin
 
MisterBitcoin's Avatar
 
"Nuri, the dragon :P"
Jul 2016
Good old Germany

14538 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Sorry, my instructions were incomplete; I first convert the file to srsieve.out format, which has the complete k-base-to-the-n line for each k.

Great, now I can filter the sequences left from the file using n++.
MisterBitcoin is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request axn Forum Feedback 15 2017-06-03 16:38
Feature request JuanTutors Software 22 2013-03-11 19:23
Feature Request Uncwilly Software 0 2008-03-06 21:07
Feature Request moo Software 24 2005-11-26 22:08
Feature request JuanTutors Software 2 2005-07-04 22:02

All times are UTC. The time now is 10:05.


Tue Jul 27 10:05:08 UTC 2021 up 4 days, 4:34, 0 users, load averages: 1.72, 1.90, 1.91

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.