Search found 22 matches

by plasma33
09 Aug 2019 16:42
Forum: DOS Batch Forum
Topic: Find, replace and move rows with matches and mismatches
Replies: 4
Views: 7603

Re: Find, replace and move rows with matches and mismatches

Hi Antonio, The second code that you supplied worked like a breeze. It took around 20 seconds to generate the output. However the first code didn't succeed in generating the output. It ran for around 6-7 hours but didn't generate any output. I had to break the file into several smaller files in orde...
by plasma33
08 Aug 2019 12:11
Forum: DOS Batch Forum
Topic: Find, replace and move rows with matches and mismatches
Replies: 4
Views: 7603

Re: Find, replace and move rows with matches and mismatches

Hi Antonio, My apologies for providing incomplete or confusing details. I have now given a better description of what I want and a link to a sample file. However the code that you supplied worked like a charm and doing exactly what I asked for. Much appreciated for this. Is it possible to modify the...
by plasma33
07 Aug 2019 18:46
Forum: DOS Batch Forum
Topic: Find, replace and move rows with matches and mismatches
Replies: 4
Views: 7603

Find, replace and move rows with matches and mismatches

Hi guys, I have a csv/text file with a bunch of numbers ranging from 500 to 500,000 and would like to replace the matches with a and mismatches by shifting the mismatched content to right simultaneously shifting the rest of the columns to right but leaving the top row untouched and then replacing th...
by plasma33
19 Jan 2019 22:31
Forum: DOS Batch Forum
Topic: Making a batch file run faster
Replies: 1
Views: 2776

Making a batch file run faster

Hi guys, I have a batch file that basically does the following each time: -> Types the content of file1 into a text file (say fileA) -> Then using the content of file1 performs a scan of a folder containing 900 files using an application called clamscan -> Finally it saves the result into the same t...
by plasma33
29 Aug 2017 19:55
Forum: DOS Batch Forum
Topic: Alignment using batchscript
Replies: 8
Views: 10587

Re: Alignment using batchscript

Hello everyone, Sorry for my delayed response. All of your codes worked perfectly as it should. I can't believe how fast all of your codes work. Just a question is it possible to use a matrix to generate the common substrings? I have an IDENTITY (scoring) matrix which could be used to generate commo...
by plasma33
27 Aug 2017 19:35
Forum: DOS Batch Forum
Topic: Alignment using batchscript
Replies: 8
Views: 10587

Re: Alignment using batchscript

Hello all, @DosItHelp, thank you for the link. I will give that a try. @aGerman, is there anyway a hybrid (i.e. a combination of batch script or VBScript or JScript) could resolve the string limit issue? Or by splitting the string into several smaller strings? @Aacini and @dbenham, I need your take ...
by plasma33
27 Aug 2017 01:15
Forum: DOS Batch Forum
Topic: Alignment using batchscript
Replies: 8
Views: 10587

Alignment using batchscript

Hi guys, I am trying to find common substrings between two strings using one to one alignment. My input will be two strings coded in A-Z characters. A best example is demonstrated below: Input: String1 GIGRGRGIGRGRGGDGARGRHRGRGRHRGRQRGIGKMKMIGKMKMIGKMKMIGKMKMIGRPRGIGRHRIIGRGRGIGRGRHIGKHKIIGRHRIIGRGR...
by plasma33
09 Aug 2017 16:12
Forum: DOS Batch Forum
Topic: Extracting substrings from strings
Replies: 4
Views: 7600

Re: Extracting substrings from strings

Hello guys,

Codes from both of you work perfectly. @elzooilogico, your hybrid code is amazing. Super fast!!

Thanks, guys.

Plasma33
by plasma33
09 Aug 2017 00:23
Forum: DOS Batch Forum
Topic: Extracting substrings from strings
Replies: 4
Views: 7600

Extracting substrings from strings

Hello guys, I would like to extract substrings from raw strings, please. Input text file will contain the raw strings (I have around 200,000 lines of that). Ouput text file will only have the extracted substrings. Please see below for more details: Sample input text file: ---------------------------...
by plasma33
01 Aug 2017 20:46
Forum: DOS Batch Forum
Topic: Pulling out sets of fixed multiple lines onto single set
Replies: 6
Views: 5859

Re: Pulling out sets of fixed multiple lines onto single set

Hello Aacini,

Yes, it does. Thanks for the modified code. You are a life saver!!

Plasma33
by plasma33
30 Jul 2017 20:18
Forum: DOS Batch Forum
Topic: Extracting specific strings from sets of multiple lines
Replies: 2
Views: 3409

Re: Extracting specific strings from sets of multiple lines

@Aacini, you are a legend! Your code works like a charm. Fast and accurate!! Thanks heaps!!

Plasma33
by plasma33
30 Jul 2017 20:16
Forum: DOS Batch Forum
Topic: Pulling out sets of fixed multiple lines onto single set
Replies: 6
Views: 5859

Re: Pulling out sets of fixed multiple lines onto single set

@Aacini, thanks for your code. It works like I wanted. I love how it shows the number of lines that it has processed. Also, I love how your code divides each line into a separate text file. And on top of it, your code does the processing much faster than my one. It did the processing in under 5mins ...
by plasma33
30 Jul 2017 01:20
Forum: DOS Batch Forum
Topic: Extracting specific strings from sets of multiple lines
Replies: 2
Views: 3409

Extracting specific strings from sets of multiple lines

Hello again, I would like to extract specific strings from a set of aligned strings. That is, I would like to extract only the aligned single string that is exactly matched to one another from several sets of aligned multiple strings avoiding gaps (i.e. hyphens). Please see below for a better pictur...
by plasma33
30 Jul 2017 01:06
Forum: DOS Batch Forum
Topic: Batchscript to extract texts from multiple lines
Replies: 18
Views: 16810

Re: Batchscript to extract texts from multiple lines

@rojo, your code works like a charm too. Thanks for a more efficient code.

Plasma33