[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

3404.0. "DIR command help" by AKOV11::SMITH (Reality, just a visible imagination?) Tue Jan 30 1990 13:21

One thing I never been able to figure out is how using AmigaDOS or ARP commands
to search a disk for a specified file.  I using WB1.32, ARP V1.3

For example:

		DIR SYS: ALL

gives a directory of all directories, sub-directories and all files just fine. 
This can be equated to the VMS command of DIR DUA0:[000000...]

However doing a:

		DIR SYS:*.info ALL

only gives the .info files in SYS and fails to search the sub-directories like
the same VMS command would... DIR DUA0:[000000...]*.TXT

Is there a way to have the same functionality?  What I most use a DIR command
for in VMS is to locate what directory I left a file in.  I have not yet been 
able to accomplish this with AmigaDOS.  I have looked at LIST and the PD
program FIND but have still be unable to figure this out.  Am I doing something
wrong or is there some other utility that will do what I'm looking for?

Thanx for any help,

...Ed
T.RTitleUserPersonal
Name
DateLines
3404.1WJG::GUINEAUTue Jan 30 1990 16:0417
try 

1> ls -R sys:.info

Oops! You need ls to do this...

WJG::AMIGA:LS31.ZOO

has this command, and

WJG::AMIGA:MV12.ZOO

has MV, CP, RM


John (sloowly giving in to UNIX :-)
3404.2LS to replace DIR in my C:AKOV11::SMITHReality, just a visible imagination?Thu Feb 01 1990 14:086
Thanks John,

From reading the docs it looks like LS is what I looking for.  I download it
and try it this weekend.

Ed
3404.3ls -RHfP diskname:*/filenameDUGGAN::GAYNow where'd I put that hammer...Mon Feb 12 1990 11:2915
    You've probably already figured this out, but the way that I use
    LS to search a disk for a file is this:
    
    	ls -RHfP diskname:*/filename
            |||\
            ||\ show path
            |\ files only 
            \ don't print directories as search them
             recursive
    
    Happy searching
    
    Yours
    Erg
    
3404.4another nice combinationFRSOLD::ZIMMERMANNRalf, DTN *861-3236, @FRSMon Feb 19 1990 13:239

alias LS       util:ls -l []

alias LS[...]  util:ls -lRTk []


Ralf
====
3404.5some more ...FRSOLD::ZIMMERMANNWer von Euch Kerls ist KowalskiFri Apr 20 1990 15:2117

alias LS       util:ls -l []
alias LS/FILE  util:ls >DIR.LIS -l []
alias LS[...]  util:ls -lRT []
alias LS[...]/FILE util:ls >DIR.LIS -lRTk []
alias LSR      util:ls -RHfP []
alias LSR/FILE util:ls >DIR.LIS -RHfP []
alias LSD      util:ls -dRHPk []
alias LSDIR    util:ls -dlRT []
alias LSDIR/FILE   util:ls >DIRS.txt -dlRk []
alias LS/DATE      util:ls -lt []
alias LS/SIZE      util:ls -ls []


ralf
====