8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this?
Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies
2. Shell Programming and Scripting
Hi,
I am writing a shell script that finds all files named <myFile> in a directory <dir> or any of its subdirectories, recursively. I also need to take care of symbolic links that may form cycles, to avoid infinite loops.
I started writing the code but got stuck. I thought using recursion... (7 Replies)
Discussion started by: vickylife
7 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
Discussion started by: bimba17
13 Replies
4. Programming
What is the best way to completely remove dir with it's content ???
rmdir deletes only EMPTY dirs as i know.
The man page of remove function says "remove() deletes a name from the file system." Can it remove any dir recursively ??? :rolleyes: (7 Replies)
Discussion started by: Trump
7 Replies
5. UNIX for Dummies Questions & Answers
i'm playing around with "ls" and "find" and am trying to get a print out of directories, with full path, (recursive) and their ownership.... without files or package contents (Mac .pkg or .mpkg files). I'd like it simply displayed without much/any extraneous info.
everything i've tried, and... (5 Replies)
Discussion started by: alternapop
5 Replies
6. Programming
I want to copy a directory recursively ( it again has directories) and the directory is on windows and is nfsmounted in vxWorks, i am using unix to develop the code for this, can any one suggest me how to copy the directories recursively. (7 Replies)
Discussion started by: deepthi.s
7 Replies
7. Shell Programming and Scripting
Hi,
Am trying for a script which should delete more than 15 days older files in my current directory.Am using the below piece of code:
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/ls -altr {} \;"
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/rm -f {} \;"
... (9 Replies)
Discussion started by: puppala
9 Replies
8. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
conv_lp(1M) System Administration Commands conv_lp(1M)
NAME
conv_lp - convert LP configuration
SYNOPSIS
conv_lp [-d dir] [-f file]
DESCRIPTION
conv_lp reads LP printer configuration information from a directory and converts it to an output file for use with print client software.
OPTIONS
The following options are supported:
-d dir The root (` / ') directory from which LP configuration information is read. The default is root (` / ').
-f file The output file to which conv_lp writes the converted LP configuration information. The default is /etc/printers.conf.
EXAMPLES
Example 1 Converting LP Configuration Information from the Default Directory and File
The following example converts LP configuration information from directory root (/) to file /etc/printers.conf.
% conv_lp
Example 2 Converting LP Configuration Information From a Specified Directory and File
The following example converts LP configuration information from directory /export/root/client to file /export/root/client/etc/print-
ers.conf.
% conv_lp -d /export/root/client -f
/export/root/client/etc/printers.conf
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
FILES
/etc/printers.conf System printer configuration database.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpcu |
+-----------------------------+-----------------------------+
SEE ALSO
lpset(1M), printers.conf(4), attributes(5)
SunOS 5.11 9 Sep 1996 conv_lp(1M)