DOS utility to display 1st line of all files in directory? (Users)
Perhaps more than you're looking for, but 4DOS alternative command shell (COMMAND.COM on steroids!) has the HEAD internal command. You can set the number of lines to display as a parameter. For example:
head /n1 /v /p *.*
"/n1" = display only the first line of each file
"/v" = verbose (display file name(s) also)
"/p" = pause after each screenful
"*.*" = all files in current directory
You can also redirect the output to a file, for example:
head /n1 /v *.* > filename
Get the latest (last?) 4DOS binaries here (4th link down):
http://www.4dos.info/sources.htm
I couldn't work in DOS (where i do about 90% of my computing) without 4DOS.
- Doug B.
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