DOS utility to display 1st line of all files in directory? (Users)
> But, I'd still like to get Rugxulo's BAT file up and running, as it seems
> to be a much more elegant way to accomplish the same task.
Sorry, been busy and distracted, never had enough energy or time to fully reply. (Not sure I do now either, sorry.)
The long answer is that it always depends on what you're trying to do and how you want to do it. "There is more than one way to skin a cat", as they say. I'm not sure what to tell you, esp. since even the QBASIC way is less universal and portable and kinda kludgy.
For simple text manipulation, you're better off using an appropriate scripting language or standard tool, e.g. awk, sed, rexx, head, tail, etc. While QBASIC has its virtues, esp. being pre-installed in (most common) MS-DOS setups, it's not necessarily the easiest, cleanest, most portable, or most robust (and easy to use) tool, at least in this case.
Part of the appeal of suggesting QBASIC (though lacking easy access to cmdline args) was so you wouldn't have to download anything extra. But it would be easier (in the long run) to just read up on Sed and AWK or similar. That way your work will work on any platform that supports those (DOS, OS/2, Win, *nix, Mac). And the fact that they are pretty small doesn't hurt either (even if it is a minor extra hassle to download them).
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