Search : in
By :

Command to select first file of listed files

Last answer on Mar 18, 2009 11:06:49 am GMT raghav525, on Mar 17, 2009 1:22:25 pm GMT 
 Report this message to moderators

Hello,
Is there any way to use the dir command or other command to select only first file of similar pattern of files
for example, one directory has 5 files
abc_1005.txt
abc_5256.txt
abc_2001.txt
abc_2003.txt
abc_3006.txt
by use single command i would like to select only first file abc_1005.txt

In unix, the command is
ls /u01/opt/incoming/abc_*.txt | head -1

i just wondering is ther any similar command in windows?

Thanks for your help,

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « command to select first file of listed files » in :
[MS-Dos]List the contents of a directory in a file Show[MS-Dos]List the contents of a directory in a file Intro Explanation Intro It may be convenient to make the listing of one or more directories in a file, to make a catalog of files. Under MS-DOS (or Windows by opening a...
[Apache]Enable listing of files Show[Apache]Enable listing of files Issue Solution Issue It is possible to override the index file (index.html) and still have access to the listing of a folder under Apache. Solution To achieve this simply add in the httpd.conf...
[Shell]Create a file having a specific size ShowShell]Create a file having a specific size The dd command allows you to create "empty" file of desired size, creating these arbitrary heavy files, may be useful for testing purposes. Use command below: dd if=/dev/zero of=file_to...
Download Hide Files PRO ShowHide Files PRO has a very simple interface to allow you to control your private data so that nobody can have access to them. It is very easy to use and understand , simply add the file that you would like to hide to the private file list and click...
Download SelectView Filter ShowInternet is certainly an unfailing source of information, but some sites and some Web pages include too many pubs. These pubs block the bandwidth and decelerate considerably your speed of connection. Select View Filter is a program allowing to filter...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
FAT16 and FAT32 ShowThe FAT16 file system The first file system to be used on a Microsoft operating system was the FAT system, which uses a file allocation table. The file allocation table is actually an index which lists the content of the disk in order to record the...
Using FTP commands ShowThe FTP protocol FTP (File Transfer Protocol) is a protocol — meaning a standard language that lets two machines communicate — used so that computers of different types (or with different operating systems) can transfer files over a...

2

 br420pra, on Mar 18, 2009 11:06:49 am GMT
  • +1

No there's nothing of that sort on windows

Reply to br420pra