Search found 10 matches
- 13 Mar 2015 07:47
- Forum: DOS Batch Forum
- Topic: BHX 5.3 - tool for rebuild binary data
- Replies: 2
- Views: 4023
Re: BHX 5.3 - tool for rebuild binary data
What is the use case for using this tool?
- 27 Nov 2014 05:44
- Forum: DOS Batch Forum
- Topic: Display first/last N lines from file
- Replies: 4
- Views: 4761
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.
If you can, then you can try using tail /head.
- 15 Nov 2014 01:32
- Forum: DOS Batch Forum
- Topic: Removing second last line from multiple text files
- Replies: 14
- Views: 9885
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])"...
- 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: 128921
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.
- 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: 128921
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.
- 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: 128921
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...
- 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: 128921
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
- 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: 128921
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..
- 19 Apr 2014 23:23
- Forum: DOS Batch Forum
- Topic: UNIX to DOS.
- Replies: 6
- Views: 5715
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...
- 31 Mar 2014 07:11
- Forum: DOS Batch Forum
- Topic: Help with SED
- Replies: 19
- Views: 11739
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...