Sponsored Content
Full Discussion: find command in windows
Special Forums Windows & DOS: Issues & Discussions find command in windows Post 302383555 by methyl on Wednesday 30th of December 2009 07:01:54 AM
Old 12-30-2009
Without Powershell you can simulate unix "find" and output only the full hierarchial names of files found.

This is a MSDOS Batch file of type ".bat" (e.g. findtxt.bat).

Code:
@echo off
set START="C:\"
for /R %START% %%f in (*.txt) do (echo %%f)

Note: The value of variable "START" can be "." (like in unix "find").



Footnote: Most Windows MSDOS "dir" versions can output the same bare list of filenames.

Code:
dir C:\*.txt /a:-d /b /s


Last edited by methyl; 12-30-2009 at 09:36 AM.. Reason: Replace "dir" with better version
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

command find returned bash: /usr/bin/find: Argument list too long

Hello, I create a file touch 1201093003 fichcomp and inside a repertory (which hava a lot of files) I want to list all files created before this file : find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies

2. Windows & DOS: Issues & Discussions

windows howto find

Hi all! How would you do the equivalent of find ! -type f..... under windows? Meaning, how under a directory could you find all files except those named *.mp3 for example? the command under linux would be: find $DIR ! -name "*.mp3" what would be that under windows? Thanx for any ideas... (3 Replies)
Discussion started by: penguin-friend
3 Replies

3. UNIX for Dummies Questions & Answers

Grub can't find Windows XP

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

4. Windows & DOS: Issues & Discussions

How to find windows user without any password

How to find windows users without any password.. (0 Replies)
Discussion started by: RPG
0 Replies

5. Windows & DOS: Issues & Discussions

how to find running databases in windows

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

6. Infrastructure Monitoring

How to find the duplex speed on Windows

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

7. Windows & DOS: Issues & Discussions

find wwn in windows machine ?

Hi guys .. How to can I know the HBA WWN address in the windows machine ? Pls advice with command ... (1 Reply)
Discussion started by: roooooot
1 Replies
PAPS(1) 						      General Commands Manual							   PAPS(1)

NAME
paps - UTF-8 to PostScript converter using Pango SYNOPSIS
paps [options] files... DESCRIPTION
paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file. The rendering is done by creating outline curves through the pango ft2 backend. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. --landscape Landscape output. Default is portrait. --columns=cl Number of columns output. Default is 1. --font=desc Set the font description. Default is Monospace 12. --rtl Do rtl layout. --paper ps Choose paper size. Known paper sizes are legal, letter, a4. Default is A4. --bottom-margin=bm Set bottom margin in postscript points (1/72 inch). Default is 36. --top-margin=tm Set top margin. Default is 36. --left-margin=lm Set left margin. Default is 36. --right-margin=rm Set right margin. Default is 36. --help Show summary of options. --header Draw page header for each page. --markup Interpret the text as pango markup. --encoding=ENCODING Assume the documentation encoding is ENCODING. --lpi Set the lines per inch. This determines the line spacing. --cpi Set the characters per inch. This is an alternative method of specifying the font size. --stretch-chars Indicates that characters should be stretched in the y-direction to fill up their vertical space. This is similar to the texttops behaviour. AUTHOR
paps was written by Dov Grobgeld <dov.grobgeld@gmail.com>. This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others). April 17, 2006 PAPS(1)
All times are GMT -4. The time now is 06:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy