Search found 198 matches

by Sponge Belly
22 Oct 2012 08:46
Forum: DOS Batch Forum
Topic: update to win2unix
Replies: 8
Views: 3698

update to win2unix

Hello All! Everyone knows this old trick of converting Unix text files to Windows format: more unix.txt > win.txt Btw, more waits for keypress after scrolling 65,534 lines no matter what. But going the other way (from Windows to Unix) is less straightforward. But with a little chicanery and a lot of...
by Sponge Belly
06 Oct 2012 07:18
Forum: DOS Batch Forum
Topic: Another take on safe string replace
Replies: 19
Views: 5759

Re: Another take on safe string replace

Classic newbie error. But when I went back to add the code tags, someone had beaten me to it. Thanks, whoever you are! Anyways, I wrote the program to see if I could exploit findstr /o ^^. I acknowledge that it is grossly inefficient, case insensitive, and that it will choke on ~, =, and *. But the...
by Sponge Belly
04 Oct 2012 17:06
Forum: DOS Batch Forum
Topic: Another take on safe string replace
Replies: 19
Views: 5759

Re: Another take on safe string replace

Hello All! Sorry for the late arrival. What did I miss? Anyways, I've cranked out a little program similar to Liviu's. Only my effort counts the occurrences of the substring in the source string and creates a 0-based index list of the position of each occurrence. @echo off & setlocal enableexten...