06-21-2010
Quote:
Originally Posted by
MrEddy
Yea see that works the problem is I have no way to limit what find picks for files.
You have lots of ways. I listed a half dozen and told you where to find more.
using find plus xargs, or find -exec, will never hit 'too many arguments' anyway since it avoids the problem entirely.
Last edited by Corona688; 06-21-2010 at 01:24 PM..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how can I automatically check if important files exist in a directory and if not, automatically put the important files where they are needed
say, I want to put .bashrc and a dozen other important files like it into every user's directory, how can I do this??? how do I check every user's... (4 Replies)
Discussion started by: TRUEST
4 Replies
2. UNIX for Dummies Questions & Answers
I would like automate the process of copying some logs files from a server to my local hard drive at a set time each week/day.
I don't really know anything about creating and scheduling jobs. Is this something I could setup relatively easily?
I would like to automatically copy all the logs... (1 Reply)
Discussion started by: Sepia
1 Replies
3. UNIX for Advanced & Expert Users
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Discussion started by: Hangman2
2 Replies
4. Shell Programming and Scripting
I am new to shell scripting and need to write a program to copy files that are posted as links on a specific url. I want all the links copied with the same file name and the one posted on the webpage containing the url onto a specific directory. That is the first part. The second part of the script... (2 Replies)
Discussion started by: libertyforall
2 Replies
5. Shell Programming and Scripting
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
Discussion started by: linuxadmin
4 Replies
6. Shell Programming and Scripting
I am in a situation where I have some hundreds of thousands of files in a directory (name of directory: big_directory). Now, working on this directory is extremely slow.
I now plan to do this:
Copy 1000 files in each of the directories by creating the directories automatically. All files have... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
7. OS X (Apple)
I'm looking to find/create a script so that when a download is complete, I can run the script in order for it to automatically move a file such as...
'example.avi' into my videos folder
I'm a novice when it comes to scripting, any advice/help would be greatly appreciated!
Thanks
Andrew (10 Replies)
Discussion started by: abudis
10 Replies
8. Shell Programming and Scripting
Here is the script I want to run to deleted log files after a certain time:
touch /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs
find /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs -atime +120 - exec rm -rf {}\;
Exerytime I run it, it throws me the error:
find: paths must... (2 Replies)
Discussion started by: lennyz04
2 Replies
9. Shell Programming and Scripting
Hi,
I have a huge structure of directories and subdirectories contsining some data. The lowest folders contain a file "image.png" which need to be converted to "folder.jpg". But how can I do that for all these files automatically? That's what I alredy have
find /path -type f -name... (1 Reply)
Discussion started by: KarlKarpfen
1 Replies
LEARN ABOUT SUSE
scrollkeeper-update
SCROLLKEEPER-UPDATE(8) System Manager's Manual SCROLLKEEPER-UPDATE(8)
NAME
scrollkeeper-update - identify new, modified, or removed OMF files and update the scrollkeeper databases
SYNOPSIS
scrollkeeper-update [ -v ] [ -q ] [ -n ] [ -p database-directory ] [ -o omf-directories ]
DESCRIPTION
This synchronizes the scrollkeeper database with the OMF directory. It searches the scrollkeeper OMF directory to identify if any files
were added, removed, or modified and updates its internal database files to reflect any changes.
This utility is generally executed as the last step of installation, after the OMF file is copied into place. It is also typically the
last step of uninstallation, after the OMF file is removed. Using this, an administrator can easily manually install and uninstall docu-
ments into the database. It can also be run to guarantee the database is fully up-to-date.
Note that because scrollkeeper-update is normally run during installation and its output is typically seen by users, non-critical warnings
and errors such as those caused by invalid metadata are written to the log file instead of to the terminal. Developers should use the log
file to identify any problems.
OPTIONS
-v Be verbose: Say which scrollkeeper-install and scrollkeeper-uninstall commands are being run to bring the database up to date.
-q Run in quiet mode, suppressing output of all but the most serious warning and error messages to STDOUT. Note that most output to
the log file will be unchanged.
-n Use the network to retrieve the DTD if it is not available via the system's XML catalog.
-p database-directory
Use database-directory as the directory for the scrollkeeper database rather than the usual one obtained by running scrollkeeper-
config --pkglocalstatedir.
-o omf-directories
Examine the directories named in omf-directories rather than the one usual one obtained by running scrollkeeper-config --omfdir (or
specified in the OMF_DIR environment variable if set). The omf-directories should be a colon-separated list of directories.
ENVIRONMENT
OMF_DIR
If no -o option is specified, this variable overrides the scrollkeeper-config-provided OMF directory. It should be a colon-sepa-
rated list of directories.
FILES
/var/lib/scrollkeeper/scrollkeeper_docs
/var/lib/scrollkeeper/TOC/<docnumber>
/var/lib/scrollkeeper/<locale>/scrollkeeper_cl.xml
/var/lib/scrollkeeper/<locale>/scrollkeeper_extended_cl.xml
/var/log/scrollkeeper.log
AUTHOR
Laszlo Kovacs <laszlo.kovacs@sun.com>
Dan Mueth <d-mueth@uchicago.edu>
SEE ALSO
scrollkeeper-config(1), scrollkeeper-gen-seriesid(1), scrollkeeper.conf(5), scrollkeeper(7), scrollkeeper-preinstall(8), scrollkeeper-
rebuilddb(8)
scrollkeeper Dec 5, 2001 SCROLLKEEPER-UPDATE(8)