Karl Springer | 4 Nov 2011 22:09
Favicon

Remove duplicate lines

Have a regular task where I take a list of email addresses
and change alpha characters to lower case, sort, and remove 
duplicate lines.  When my XP Pro machine mother board crashed, I 
moved to Win 7 Pro, 64 bit, machine.  One result is that the 
batch script I was using no longer worked because I was using 
the  venerable RPSORT, a 16-bit program.  Anyone know of an 
equivalent 32-bit version?

While I can sort using MS' SORT, it has no provision to remove 
duplicate lines.  When I did a Google search to use SED, I 
became overwhelmed.  Help.

Thanks,

Karl

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
(Continue reading)

habs3@yahoo.com | 4 Nov 2011 22:11
Picon
Favicon

Re: [BATCH WORLD] Remove duplicate lines

Karl
Powertel is the way to go here especially on win 7

----- Reply message -----
From: "Karl Springer" <bi434@...>
Date: Fri, Nov 4, 2011 5:09 pm
Subject: [BATCH WORLD] Remove duplicate lines
To: <batchworld@...>

Have a regular task where I take a list of email addresses
and change alpha characters to lower case, sort, and remove 
duplicate lines.  When my XP Pro machine mother board crashed, I 
moved to Win 7 Pro, 64 bit, machine.  One result is that the 
batch script I was using no longer worked because I was using 
the  venerable RPSORT, a 16-bit program.  Anyone know of an 
equivalent 32-bit version?

While I can sort using MS' SORT, it has no provision to remove 
duplicate lines.  When I did a Google search to use SED, I 
became overwhelmed.  Help.

Thanks,

Karl

[Non-text portions of this message have been removed]

------------------------------------

To Post a message, send it to:   batchworld@...
(Continue reading)

Michael Burek | 4 Nov 2011 22:15

Re: Remove duplicate lines

Powertel?
I couldn't find that program :(

On Fri, Nov 4, 2011 at 4:11 PM, habs3@...
<habs3@...> wrote:

> **
>
>
> Karl
> Powertel is the way to go here especially on win 7
>
>
> ----- Reply message -----
> From: "Karl Springer" <bi434@...>
> Date: Fri, Nov 4, 2011 5:09 pm
> Subject: [BATCH WORLD] Remove duplicate lines
> To: <batchworld@...>
>
> Have a regular task where I take a list of email addresses
> and change alpha characters to lower case, sort, and remove
> duplicate lines. When my XP Pro machine mother board crashed, I
> moved to Win 7 Pro, 64 bit, machine. One result is that the
> batch script I was using no longer worked because I was using
> the venerable RPSORT, a 16-bit program. Anyone know of an
> equivalent 32-bit version?
>
> While I can sort using MS' SORT, it has no provision to remove
> duplicate lines. When I did a Google search to use SED, I
> became overwhelmed. Help.
(Continue reading)

habs3@yahoo.com | 4 Nov 2011 23:34
Picon
Favicon

Re: [BATCH WORLD] Remove duplicate lines

Sorry dam auto correct powershell

----- Reply message -----
From: "Michael Burek" <mike@...>
Date: Fri, Nov 4, 2011 5:15 pm
Subject: [BATCH WORLD] Remove duplicate lines
To: <batchworld@...>

Powertel?
I couldn't find that program :(

On Fri, Nov 4, 2011 at 4:11 PM, habs3@...
<habs3@...> wrote:

> **
>
>
> Karl
> Powertel is the way to go here especially on win 7
>
>
> ----- Reply message -----
> From: "Karl Springer" <bi434@...>
> Date: Fri, Nov 4, 2011 5:09 pm
> Subject: [BATCH WORLD] Remove duplicate lines
> To: <batchworld@...>
>
> Have a regular task where I take a list of email addresses
> and change alpha characters to lower case, sort, and remove
> duplicate lines. When my XP Pro machine mother board crashed, I
(Continue reading)

foxidrive | 5 Nov 2011 06:04

Re: Remove duplicate lines

On 5/11/2011 08:09, Karl Springer wrote:
> Have a regular task where I take a list of email addresses
> and change alpha characters to lower case, sort, and remove
> duplicate lines.  When my XP Pro machine mother board crashed, I
> moved to Win 7 Pro, 64 bit, machine.  One result is that the
> batch script I was using no longer worked because I was using
> the  venerable RPSORT, a 16-bit program.  Anyone know of an
> equivalent 32-bit version?
>
> While I can sort using MS' SORT, it has no provision to remove
> duplicate lines.  When I did a Google search to use SED, I
> became overwhelmed.  Help.
>
> Thanks,
>
> Karl

I had this squirreled away.

:: alphanumeric characters 'only'
:: the input file "file.txt" is sorted before processing.
 <at> echo off
sort <file.txt >file2.txt
set a=
set b=
type nul>fileout.txt
for /f "delims=" %%a in (file2.txt) do call :next "%%a"
del file2.txt
set a=
set b=
(Continue reading)

Karl Springer | 5 Nov 2011 06:43
Favicon

Re: Remove duplicate lines

On 4 Nov 2011 at 14:09 -0700, Karl Springer wrote, at least in 
part:

> ...  When my XP Pro machine mother board crashed, I moved
> to Win 7 Pro, 64 bit, machine.  One result is that the
> batch script I was using no longer worked because I was
> using the  venerable RPSORT, a 16-bit program.  Anyone know
> of an equivalent 32-bit version?  

Found a near equivalent, CMSORT (donationware),
<http://www.chmaas.handshake.de/delphi/freeware/cmsort/cmsort.htm>.

Karl

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)
(Continue reading)

batchlover93 | 28 Nov 2011 12:16
Picon
Favicon

howto extract each character from a text file to another text file.

Greetings,

I'm looking for a batch that can extract each character from a text file to another text file.

Example 

content of textfile:
0123456789

i want to extract each character to a single file

0 in 0.txt file
1 in 1.txt file
2 in 2.txt file
etc...

Any help appreciated 
Thanks :)

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
(Continue reading)

foxidrive | 28 Nov 2011 12:37

Re: howto extract each character from a text file to another text file.

On 28/11/2011 22:16, batchlover93 wrote:
> Greetings,
> 
> I'm looking for a batch that can extract each character from a text file to another text file.
> 
> Example 
> 
> content of textfile:
> 0123456789
> 
> i want to extract each character to a single file
> 
> 0 in 0.txt file
> 1 in 1.txt file
> 2 in 2.txt file
> etc...
> 
> Any help appreciated 
> Thanks :)
> 

What happens if you have 

987654321

Does 9 still go into 0.txt file?

------------------------------------

To Post a message, send it to:   batchworld@...
(Continue reading)

batchlover93 | 28 Nov 2011 19:16
Picon
Favicon

Re: howto extract each character from a text file to another text file.


No, not exactly if I have 9876543210 in the text file

what I want to achieve is 

the character 9 go into the 9.txt file
the character 8 go into the 8.txt file
the character 7 go into the 7.txt file
the character 6 go into the 6.txt file
the character 5 go into the 5.txt file
the character 4 go into the 4.txt file
the character 3 go into the 3.txt file
the character 2 go into the 2.txt file
the character 1 go into the 1.txt file
and the character 0 go into the 0.txt file

--- In batchworld@..., foxidrive <foxidrive <at> ...> wrote:
>
> On 28/11/2011 22:16, batchlover93 wrote:
> > Greetings,
> > 
> > I'm looking for a batch that can extract each character from a text file to another text file.
> > 
> > Example 
> > 
> > content of textfile:
> > 0123456789
> > 
> > i want to extract each character to a single file
> > 
(Continue reading)

foxidrive | 28 Nov 2011 19:51

Re: howto extract each character from a text file to another text file.

So, are you counting numbers or are there alpha characters/control characters as well?

Will the lines be very long?

Will there be only one line per file?

On 29/11/2011 05:16, batchlover93 wrote:
> 
> 
> No, not exactly if I have 9876543210 in the text file
> 
> what I want to achieve is 
> 
> the character 9 go into the 9.txt file
> the character 8 go into the 8.txt file
> the character 7 go into the 7.txt file
> the character 6 go into the 6.txt file
> the character 5 go into the 5.txt file
> the character 4 go into the 4.txt file
> the character 3 go into the 3.txt file
> the character 2 go into the 2.txt file
> the character 1 go into the 1.txt file
> and the character 0 go into the 0.txt file

> 
> 
> --- In batchworld@..., foxidrive <foxidrive <at> ...> wrote:

>>>
>>> Any help appreciated 
(Continue reading)


Gmane