06-08-2016
Unless used for special purposes, the -t and -r options to ls are pointless when you just want to list a directory, and cost processing time.
Why don't you put the output into another directory?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I look at a certain directory and list all the file names, locations and sizes of each file in the current directory and all subdirectories? (2 Replies)
Discussion started by: ssmiths001
2 Replies
2. AIX
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies
3. Shell Programming and Scripting
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
Discussion started by: t17
0 Replies
4. UNIX for Dummies Questions & Answers
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Discussion started by: t17
31 Replies
5. Shell Programming and Scripting
Hi to all here ,
Excuse me for the lamer question but I need UNIX command for copying List of Files Under Different File Names !
for example I have this list:
new_001.jpg
new_002.jpg
new_003.jpg
.....
I want to copy all files that start with "new_" to the same directory but under... (7 Replies)
Discussion started by: boboweb_
7 Replies
6. Shell Programming and Scripting
got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies
7. UNIX for Advanced & Expert Users
Hi , Need to shell script to extracts files names and write those to another file in different directory.
input file is
inputfile.txt
abc|1|bcd.dat
123 david123
123 rudy2345
124 tinku5634
abc|1|def.dat
123 jevid123
123 qwer2345
124 ghjlk5634
abc|1|pqr.txt
123 vbjnnjh435
123 jggdy876... (9 Replies)
Discussion started by: dssyadav
9 Replies
8. Shell Programming and Scripting
Hi all,
I need a shell script to write into a .txt file the no of files in a directory with extension and separated by comma in between. For eg, a directory contains files like
a.csv
b.csv
c.csv
d.csv
Then the output in the output.txt file should be like
a.csv,b.csv,c.csv,d.csv
... (3 Replies)
Discussion started by: dubuku_01
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
Discussion started by: Balasankar
5 Replies
10. Shell Programming and Scripting
If I have 5 files in a directory, what is the best way to remove specific files in it?
For example,
snps.ivg
probes.ivg
Desired output
probes.ivg
probes.txt
all.txt
Basically, removing those files with "snp" in the filename regardless of extension. Thank you :). (2 Replies)
Discussion started by: cmccabe
2 Replies
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)