Search found 10 matches

by goldfish
13 Mar 2015 07:47
Forum: DOS Batch Forum
Topic: BHX 5.3 - tool for rebuild binary data
Replies: 2
Views: 3709

Re: BHX 5.3 - tool for rebuild binary data

What is the use case for using this tool?
by goldfish
27 Nov 2014 05:44
Forum: DOS Batch Forum
Topic: Display first/last N lines from file
Replies: 4
Views: 4157

Re: Display first/last N lines from file

depends on whether you can use tools especially designed for this purpose.
If you can, then you can try using tail /head.
by goldfish
15 Nov 2014 01:32
Forum: DOS Batch Forum
Topic: Removing second last line from multiple text files
Replies: 14
Views: 8401

Re: Removing second last line from multiple text files

Your title says you want to remove the 2nd last line, but your code removes the last line. I'm assuming your code is correct. This is a simple and efficient solution using the new JREPL.BAT @echo off for /f "eol=: delims=" %%F in ('dir /b *.txt') do ( call jrepl "^.*\n(?=[\s\S])"...
by goldfish
07 Nov 2014 19:00
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - Case sensitive sort with option for numeric sort
Replies: 48
Views: 109718

Re: JSORT.BAT - Case sensitive sort with option for numeric

Remove that hybrid and do everything in jscript or vbscript. running in one process is better than spawning different processes.
by goldfish
07 Nov 2014 18:58
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - Case sensitive sort with option for numeric sort
Replies: 48
Views: 109718

Re: JSORT.BAT - Case sensitive sort with option for numeric

foxidrive wrote:
Squashman wrote:Hi Brian.



Bingo.

what's up long time no see hope you missed me.
by goldfish
07 Nov 2014 09:15
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - Case sensitive sort with option for numeric sort
Replies: 48
Views: 109718

Re: JSORT.BAT - Case sensitive sort with option for numeric

Not forgetting that modern Windows also comes with Powershell installed by default. I am sure one could also use that power for sorting. m The other main point of JSORT is that it is a hybrid BATCH/Jscript. Hard to do that with powershell. There is a running thread about that topic. Why would power...
by goldfish
07 Nov 2014 08:39
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - Case sensitive sort with option for numeric sort
Replies: 48
Views: 109718

Re: JSORT.BAT - Case sensitive sort with option for numeric

Not forgetting that modern Windows also comes with Powershell installed by default. I am sure one could also use that power for sorting. http://technet.microsoft.com/en-us/libr ... 76968.aspx
by goldfish
07 Nov 2014 02:10
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - Case sensitive sort with option for numeric sort
Replies: 48
Views: 109718

Re: JSORT.BAT - Case sensitive sort with option for numeric

applaud your effort in creating a "native" solution to sort, however, a compiled tool is always "faster" than a script engine. There's a GNU win32 sort in http://gnuwin32.sourceforge.net/packages/coreutils.htm, also, windows have sort as well..
by goldfish
19 Apr 2014 23:23
Forum: DOS Batch Forum
Topic: UNIX to DOS.
Replies: 6
Views: 5072

Re: UNIX to DOS.

I've been assigned the task of converting our UNIX C shell scripts to DOS because I told them that it could be done and because we're moving to an all DOS/Windows environment from Solaris--what have I done? It just seems like you could so.... Here I am researching UNIX equivalents to DOS (e.g., GRE...
by goldfish
31 Mar 2014 07:11
Forum: DOS Batch Forum
Topic: Help with SED
Replies: 19
Views: 9786

Re: Help with SED

If anyone knows SED syntax, can they help? I have a bit of text: Dev\TechRefactoring\BOPVT] where there can be any number >=1 occurrences of the \ before \BOPVT. I am trying to remove the last \BOPVT to obtain only: Dev\TechRefactoring It's easy if there is only 1 \, but if the number is variable h...