04-25-2012
You don't use :, but ; at the end of the find statement.
Alse please use code tags for posting code.
Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Trying to write a find command that will be used for incremental backups. Basically find files newer than date, and copy them (directory structures intact) to the backup drive. When I try the following:
find / -newer /home/robf/incremental -type f -exec cp -afP {} /backup/inc1 \;
It puts all... (1 Reply)
Discussion started by: robf
1 Replies
2. UNIX for Dummies Questions & Answers
When I do the following :
grep -l "string" *,
I get a list of file names returned. Is there a way to copy the files returned from the list into another directory ?.
Thanks. (4 Replies)
Discussion started by: Kartheg
4 Replies
3. UNIX for Dummies Questions & Answers
Suppose there is a file which is being executed by someone. Is there a way to return the username of whoever is using that file? (7 Replies)
Discussion started by: Sniper Pixie
7 Replies
4. Shell Programming and Scripting
Here is the command in question for f in $(<uploads); do .
I only want this to execute if uploads is not empty. If uploads is empty I want the script to quit, actually before the for command. If its not apparent uploads is a text file.
Chris (3 Replies)
Discussion started by: chrchcol
3 Replies
5. Shell Programming and Scripting
I need to execute a command that is loaded from a file.
Basically, we have several scripts that need to be run at scheduled times.
We're going to store those times in the database and update a file with data.
In that file we'll have scriptName, inputParameters, runTimes, etc...
I chose to use... (4 Replies)
Discussion started by: GoldenEye4ever
4 Replies
6. UNIX for Dummies Questions & Answers
When trying to find a list of files with specific text in them using
find . -type f -exec grep -l "DataStage Job 4263" {}\;
I get error
find: missing argument to 'exec'
How can I correct this ? I'm on Linux Red Hat.
Cheers
PS I'm a DataStage programmer not a systems support... (4 Replies)
Discussion started by: jackdaw_at_work
4 Replies
7. Shell Programming and Scripting
We have 2 file XML files - FILE1.XML and FILE2.xml - we need copy the contents of FILE1.XML and replace in FILE2.xml pattern "<assignedAttributeList></assignedAttributeList>"
FILE1.XML
1. <itemList>
2. <item type="Manufactured">
3. <resourceCode>431048</resourceCode>
4. ... (0 Replies)
Discussion started by: balrajg
0 Replies
8. Shell Programming and Scripting
case "$inputs" in
sapte)
find /pools/home_unix/sapte/work/models/model -name "*.xml" exec rm -i {} \;;
ckm1)
find /pools/home_unix/ckm1/work/models/model -name "*.xml" exec rm -i {}
\;;
I am getting error like as below.
./menu1.sh: line 144: syntax error near unexpected token `)'... (4 Replies)
Discussion started by: lathigara
4 Replies
9. Shell Programming and Scripting
Running below command , but unable to print the filename , is there way to print filename/dirname using -print option
find . -type f -exec aclput -i fileacl.template {} \; (5 Replies)
Discussion started by: lalitpct
5 Replies
10. Solaris
Hello,
Our applications are deployed in SunOS 5.10 servers. All the team members use a same username/pwd to login to the box. Very often we face issue were we could see that weblogic server instance are KILLED and we are not able to trace who executed kill command. All team members use PUTTY to... (2 Replies)
Discussion started by: santtarius
2 Replies
XMDS(1) User Contributed Perl Documentation XMDS(1)
NAME
xmds - the eXtensible Multi-Dimensional Simulator
SYNOPSIS
xmds [options] <script_file>
DESCRIPTION
The program xmds is a code generator that integrates equations. You write them down in human readable form in an XML file, and it goes
away and writes and compiles a C++ program that integrates those equations as fast as it can possibly be done in your architecture.
For information as to how to write a script for xmds, and how to solve problems in physics, mathematics and even finance and economics,
read the associated pdf documentation available from the xmds web site: http://www.xmds.org.
OPTIONS
-t, --template Output a template either to the terminal or to an optionally specified file
-h, --help Display help and usage information
-v, --verbose Turn on verbose information output
-n, --nocompile Turn off automatic compilation of output code
-d, --debug Turn on debugging information in processing of xmds script
-x, --xmldebug Turn on debugging information in parsing of xml code
FILES
Directory for storing fftw wisdom files:
${HOME}/.xmds/wisdom/
Preferences file:
${HOME}/.xmds/xmds.prefs or <path-to-script-directory>/xmds.prefs
EXAMPLES
xmds nlse.xmds xmds -t new_xmds_file.xmds xmds --template > new_xmds_file.xmds
AUTHORS
Originally written by Greg Collecutt
Maintained by Paul Cochrane with code contributed by Joe Hope
BUGS
No known bugs.
SEE ALSO
xsil2graphics(1), loadxsil(1)
COPYRIGHT
Copyright (C) 2000-2004
Code contributed by Greg Collecutt, Joseph Hope and Paul Cochrane
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
perl v5.8.2 2004-06-21 XMDS(1)