11-21-2005
Quote:
Originally Posted by RTM
find /A -type d -ls
or
find /A -type d -ls |awk '{print $10}'
RTM, neither of the commands worked using the find/A prefix. The result I get is find: cannot open /A: No such file or directory.
I tried it using a lowercase a after the /.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!
I'd like to list my files recursively BUT:
I want them in this format, so that I can use them as options for commands like ftp->put or del
./directory1/file1.tar
./directory1/file2.tar
./directory1/file3.tar
./directory2/file1.tar
./directory2/file2.tar
./directory2/file3.tar... (9 Replies)
Discussion started by: roberthawke
9 Replies
2. Shell Programming and Scripting
Hi,
I would need to go through all the subdirectories, find each file and would need to check them out(using clearcase, which I know).
But could you please help me how to find all the files under all subdirectories.. there could be multiple directories and subdirs...
Sas (3 Replies)
Discussion started by: shajiasalim
3 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to concatenate files in subdirectories with the same folder name. Say concatenate all the files in the 'current' subdirectories in 'Literature' parent directory.
Literature/USA/current/
Literature/Europe/current/
Can anyone help with it? Thanks a lot! (2 Replies)
Discussion started by: joyce007
2 Replies
4. UNIX for Advanced & Expert Users
I'm trying to concatenate files in subdirectories with the same folder name. Say concatenate all the files in the 'current' subdirectories in 'Literature' parent directory.
Literature/USA/current/
Literature/Europe/current/
Can anyone help with it? Thanks a lot! (2 Replies)
Discussion started by: joyce007
2 Replies
5. Shell Programming and Scripting
Hi,
I have a very big directory structure that consists of many sub-directories inside.There are around 50 ".gz" files under this dir structure.
I want to copy all the gz files alone to a seperate location.
Plz help me. (2 Replies)
Discussion started by: villain41
2 Replies
6. Shell Programming and Scripting
Dear all,
I have a dir structure like
main_dir
At_nn Ag_js Nf_hc ....
mcd32 mgd43... mcd32 mgd43... mcd32 mgd43...
and each subdir (e.g. mcd32, mgd43) contains files.
Now, i... (15 Replies)
Discussion started by: yogeshkumkar
15 Replies
7. Shell Programming and Scripting
Hi all,
how to recursively search for a list of keywords in a given directory??
for example:
suppose i have kept all the keywords in a file called "procnamelist" (in separate line)
and i have to search recursively in a directory called "target/dir"
if i am not doing recursive search then... (4 Replies)
Discussion started by: neelmani
4 Replies
8. UNIX for Advanced & Expert Users
Hello,
I wanted to
list all files in subdirectories which are modifiled recently. need to display all files with full details like hpw it display with ls -l ( date, size,..)
Thanks
Bala (3 Replies)
Discussion started by: balareddy
3 Replies
9. UNIX for Dummies Questions & Answers
Hi, I'm currently trying to print the names of all the .txt files in the subdirectories that contain the string I'm searching.
I tried with this code, but it seems that it searches for the names that matches the string instead of searching for the string in the individual files and printing the... (2 Replies)
Discussion started by: nuclearpenguin
2 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
Am a newbie to Unix. As I would like to see the Server Name,Owner Name ( not numeric form), Group Name ( not numeric ID), ROOT path.
I would like to send this list as an attachment to my personal mail. Can any one please help me out to to resolve this .
Here is the sample result... (6 Replies)
Discussion started by: vasuvv
6 Replies
LEARN ABOUT CENTOS
macstream
MACSTREAM(1) General Commands Manual MACSTREAM(1)
NAME
macstream - Convert a series of files to a MacBinary stream
SYNOPSIS
macstream [ - options ] files
DESCRIPTION
macstream takes the files specified in files and combines them to a MacBinary stream on standard output subject to the options specified.
If files also specifies directories they are followed recursively, and all files found will be put in the MacBinary stream, together with
directory information.
OPTIONS
In the absence of any options, macstream takes the specified files and silently combines them to a MacBinary stream, writing the result to
standard output. Directories named in files are followed recursively, all files found will be put in the MacBinary stream, together with
directory information. Files are assumed to be in MacBinary format. However, if the filename ends with .info the file is assumed to be
the info fork of a MacIntosh file split amongst more than one file. In that case the files with .data and .rsrc extension are also read
(if present). Also, if the info fork is mentioned in the parameter list, the names of data and resource forks can also be mentioned, but
those will be ignored (this is to allow wild-card expansion by the shell.) Further, if some form of AppleShare is supported by the
installed program, and if the current directory, or one of the directories found during recursive processing, is a directory in the format
of the supported version of AppleShare, those files will be handled according to the properties of AppleShare.
-r No intelligent file-processing is performed; all files named are assumed to be plain resource files, and are written as MacIntosh
resource files with creator "RSED" and type "RSRC", unless another creator and/or type are specified.
-d No intelligent file-processing is performed; all files named are assumed to be plain data files, and are written as MacIntosh data
files with creator "MACA" and type "TEXT", unless another creator and/or type are specified.
-u As -d, but the codes for CR and LF are interchanged.
-U Is a synonym for -u.
-c creator
Defines the creator name to be used if one of the previous options is specified.
-t type
Defines the type name to be used if one of the previous options is specified.
-l List every file and directory processed.
-i Do not output files, give information only (implies -l.)
-q Ask the user for every file/directory whether it should be visited (implies -l.)
-V Gives the patchlevel of the program, and other information. Other options are ignored and the program quits immediately.
-H Give short information about the options. Other options are ignored and the program quits immediately.
BUGS
As this is a beta release, there may still be some problems.
SEE ALSO
macutil(1)
AUTHOR
Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl)
3rd Berkeley Distribution October 22, 1992 MACSTREAM(1)