DOS utility to display 1st line of all files in directory? (Users)
Hi again, Rugxulo!
I'm afraid I've been out of the loop for a while due to illness and the demands of the holiday season. But I'm making an effort to get back to work on this project again (though it's still difficult for me to spend much time at the computer).
In that BAT file you posted for me, I see that it calls a QBASIC program called ONELINE.BAS. Where can I find a copy of that?
Will in Seattle
a.k.a. "Clueless"
> Anyways, here's a quick .BAT / .BAS combo I whipped up that should work
> verbatim in MS-DOS 6. (I assume this does what you want, otherwise you
> might have to use
> Sed,
> Awk,
> Edlin, or similar utility from wherever):
>
> > @echo off
> REM Usage: for %a in (*.txt) do call oneline.bat %a
> set B1=%TEMP%.\oneline.bas
> echo OPEN ENVIRON$("MYFILE") FOR INPUT AS #1 >%B1%
> echo INPUT #1, line$ : PRINT line$ >>%B1%
> echo CLOSE >>%B1%
> echo SYSTEM >>%B1%
> :begin
> set MYFILE=%1
> qbasic /run oneline.bas
> for %%z in (MYFILE B1) do set %%z=
>
Complete thread:
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 18.12.2012, 03:07 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- DOS utility to display 1st line of all files in directory? - Doug, 18.12.2012, 06:46
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 18.12.2012, 15:37
- DOS utility to display 1st line of all files in directory? - myrkraverk, 18.12.2012, 20:09
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 18.12.2012, 20:19
- DOS utility to display 1st line of all files in directory? - Rugxulo, 18.12.2012, 20:38
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 19.12.2012, 17:55
- DOS utility to display 1st line of all files in directory? - Rugxulo, 19.12.2012, 20:44
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 20.12.2012, 18:14
- DOS utility to display 1st line of all files in directory? - Rugxulo, 20.12.2012, 21:10
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 28.12.2012, 17:42
- DOS utility to display 1st line of all files in directory? - Rugxulo, 20.12.2012, 21:10
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 20.12.2012, 18:14
- DOS utility to display 1st line of all files in directory? - Rugxulo, 19.12.2012, 20:44
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 26.12.2012, 16:32
- DOS utility to display 1st line of all files in directory? - Rugxulo, 26.12.2012, 23:05
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 31.12.2012, 17:24
- DOS utility to display 1st line of all files in directory? - Rugxulo, 03.01.2013, 10:55
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 31.12.2012, 17:24
- DOS utility to display 1st line of all files in directory? - Rugxulo, 26.12.2012, 23:05
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 19.12.2012, 17:55
- DOS utility to display 1st line of all files in directory? - j_hoff, 19.12.2012, 09:47
- DOS utility to display 1st line of all files in directory? - Rugxulo, 18.12.2012, 20:38
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 18.12.2012, 15:37
- DOS utility to display 1st line of all files in directory? - ron, 18.12.2012, 22:48
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 19.12.2012, 18:10
- DOS utility to display 1st line of all files in directory? - ron, 19.12.2012, 22:28
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 19.12.2012, 18:10
- DOS utility to display 1st line of all files in directory? - Doug, 21.12.2012, 00:26
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 21.12.2012, 16:40
- DOS utility to display 1st line of all files in directory? - CluelessInSeattl, 21.12.2012, 17:00
- DOS utility to display 1st line of all files in directory? - Doug, 18.12.2012, 06:46
Mix view