09-07-2009
Thanks a lot. It is working fine now.
One last query.
How can i pass a windows folder path as a param.
this is my func
for file in $(find c:\\temp\\ -name "root.txt" -type f)
do
genrb.exe $file -d $(dirname $file)
done
and i run it as
C:\temp2>script.sh
now i want to pass the path i.e. c:\temp as a parameter.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to know how I'll be able to write a script that can goto a different dir where I don't have access to read,write and execute and also to run a commandline prompt in that dir with one file whose path has to be specified in that command.
Will I be able to do this?
Any ideas or... (2 Replies)
Discussion started by: ann_124
2 Replies
2. Solaris
Dear experts,
In a directory i have both *.TXT and *.txt files. I have a script-
for file in `ls *.txt`; do
mv $file /tmp/$file
How to list both *.txt and*.TXT file in one command so that script will move both .txt or .TXT whatever it find.
br//purple (4 Replies)
Discussion started by: thepurple
4 Replies
3. UNIX for Dummies Questions & Answers
I would like to setup a cron job to run a command from another directory.
What is the best way to do this?
The cron file is in a directory and the script I want it to run is in another directory.
I tried doing this in the cron file:
/location/of/command/run.sh
But that did not work.... (2 Replies)
Discussion started by: Sepia
2 Replies
4. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies
5. Shell Programming and Scripting
Hi,
I am a novice and require help once again.
I have a over 200 file all called index.jsp placed in different directories
The following Sed command gives me the data of all included jsp files in index.jsp
sed -n -e 's/^.*page="\(*\).*$/\1/p' index.jsp
How can I run the above... (6 Replies)
Discussion started by: rajkdutta
6 Replies
6. Shell Programming and Scripting
hi,
I want to copy files from source directory based on input file (or output of previous command) and i want to have the SAME DIRECTORY STRUCTURE.
Note that i will have other files and directories which i dont want to copy to destination.
For example, dir source has following content:... (22 Replies)
Discussion started by: dragon.1431
22 Replies
7. Shell Programming and Scripting
I am having following folder structure.
/root/audios/pop
/root/audios/jazz
/root/audios/rock
Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul, j2.ul, j3.ul, r1.ul, r2.ul, r3.ul
And I have a file named as "audio.txt" in the path /root/audios,... (11 Replies)
Discussion started by: gopikrish81
11 Replies
8. Shell Programming and Scripting
HI
i have below command and i want to run it on each logs of each and every Dir.
/home/Laco/Al
I have sub dir in this folder
/home/Laco/Al/04092012/LP/X/*.logs
/home/Laco/Al/04092012/LP/Y/*.logs
/home/Laco/Al/04092012/LP/Z/*.logs
/home/Laco/Al/04092012/LP/P/*.logs
I want to run... (5 Replies)
Discussion started by: asavaliya
5 Replies
9. Shell Programming and Scripting
I am trying to figure out a way to script copying specific files from one dir structure to another.
I have a dir structure like this:
dira/author 1/book 1/file a.epub
/book 2/file b.epub
/author 2/book 1/file c.epub
/author 3/book 1/file d.epub
/book 2/file... (2 Replies)
Discussion started by: arcanas
2 Replies
10. Shell Programming and Scripting
Hi
Q1. I have a scenario to run cfsend command,this command will run based on node name,port num,userid and password
I was created one file called test.txt and inserted two values,then called those two values from test.txt file that pointed to node place and ran the script it worked fine
Now... (10 Replies)
Discussion started by: venuvaka
10 Replies
ROOTA(1) General Commands Manual ROOTA(1)
NAME
roota - Interpretor of C++ for the ROOT framework
SYNOPSIS
roota [options] files ...
DESCRIPTION
ROOTs Object-Oriented Technologies.
root is a interactive interpretor of C++ code. It uses the ROOT framework. For more information on ROOT, please refer to
http://root.cern.ch. <http://root.cern.ch> An extensive Users Guide is available from that site.
OPTIONS
-? Show summary of options.
-b Run in batch mode without graphics
-n Do not execute logon and logoff macros as specified in .rootrc
-q Exit after processing command line macro files
-l Do not show splash screen
SEE ALSO
rootcint(1), cint(1), root-config(1), rootd(1), h2root(1), g2root(1), root(1)
* For extensive documentation on the ROOT system, see ROOT web-site <http://root.cern.ch>
* A Users Guide is available from the ROOT website <http://root.cern.ch/root/UsersGuide.html>
* The classes of ROOT are all documented by the automatic documentation system and is available online.
<http://root.cern.ch/root/html/ClassIndex.html>
FILES
<etcdir>/system.rootrc
System-wide configuration file. <etcdir> either ROOTSYS, or something like /etc/root
<libdir>/*
ROOT C++ class libraries. <libdir> is either ROOTSYS/lib or something like /usr/lib/root.
<incdir>/*
The header files for the ROOT C++ class libraries. <incdir> is either ROOTSYS/include or something like /usr/include/root.
~/.rootrc, ./.rootrc
User configuration file
ORIGINAL AUTHORS
The ROOT team (see web page above):
Rene Brun and Fons Rademakers
COPYRIGHT
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as pub-
lished by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foun-
dation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
AUTHOR
This manual page was written by Christian Holm Christensen <cholm@nbi.dk>, for the Debian GNU/Linux system (but may be used by others).
ROOT
Version 3 ROOTA(1)