05-20-2005
Quote:
Originally Posted by pressy
set DIR=c:\what\ever
dir %DIR% /s /b | find "*.mp3" /v
should work like your find
gP
That gave me exactly the contrary of what i want. i'd like to see alll files except the mp3s'...
Please note the "!" in the shell command
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
grub was working beautifully on my old hard drive. I cloned my drive, and reinstalled
grub. My linux partition loads fine, but when I click on Windows, grub simply sends me
back to the grub prompt with no error message. On investigating, it appears that grub
hasn't loaded the windows kernel. (I... (2 Replies)
Discussion started by: LeoSimon
2 Replies
2. Windows & DOS: Issues & Discussions
How to find windows users without any password.. (0 Replies)
Discussion started by: RPG
0 Replies
3. Windows & DOS: Issues & Discussions
Hi,
I am working in solaris os.I would like to know how many databases are running in windows.
Is there any command like ps -ef|grep pmon in wndows...............
Thanks&Regards,
Arul (1 Reply)
Discussion started by: arulkumar
1 Replies
4. Infrastructure Monitoring
Hi,
In UNIX, it's very easy to find the duplex speed. But in Windows, is there a easy way to find the duplex speed? I can't go to over 100 servers to find this out, I was wondering if I run one command to do this?
Please advice. (2 Replies)
Discussion started by: samnyc
2 Replies
5. Windows & DOS: Issues & Discussions
Dear Experts,
Please tell me what is the equivalent command of
find . -name "*.txt" -print
which prints the all the text files in all the folders and sub folders in case of unix.
in windows how can i achieve the same output in windows please inform and also
find . -name "*.txt" -print|... (2 Replies)
Discussion started by: vin_pll
2 Replies
6. Shell Programming and Scripting
Hi every body!
I would like to get only filename in the result of find command in Linux but I don't know howto. Tks so much for your helps. (5 Replies)
Discussion started by: nguyendu0102
5 Replies
7. AIX
Can anyone help me to find the data and management IP address on a IBM unix server without looking at the /etc/hosts file. sometimes the hosts file may not make it obvious between the data & mgmt ip addresses. thanks (5 Replies)
Discussion started by: amerjit.jhalley
5 Replies
DIR(3) 1 DIR(3)
dir - Return an instance of the Directory class
SYNOPSIS
Directory dir (string $directory, [resource $context])
DESCRIPTION
A pseudo-object oriented mechanism for reading a directory. The given $directory is opened.
PARAMETERS
o $directory
- Directory to open
o $context
-
Note
Context support was added with PHP 5.0.0. For a description of contexts, refer to "Streams".
RETURN VALUES
Returns an instance of Directory, or NULL with wrong parameters, or FALSE in case of another error.
EXAMPLES
Example #1
dir(3) example
Please note the fashion in which Directory.read(3)'s return value is checked in the example below. We are explicitly testing
whether the return value is identical to (equal to and of the same type as - see Comparison Operators for more information) FALSE
since otherwise, any directory entry whose name evaluates to FALSE will stop the loop.
<?php
$d = dir("/etc/php5");
echo "Handle: " . $d->handle . "
";
echo "Path: " . $d->path . "
";
while (false !== ($entry = $d->read())) {
echo $entry."
";
}
$d->close();
?>
The above example will output something similar to:
Handle: Resource id #2
Path: /etc/php5
apache
cgi
cli
NOTES
Note
The order in which directory entries are returned by the read method is system-dependent.
PHP Documentation Group DIR(3)