02-19-2011
Ive tried that and I thought that would be it but it also copies files without capital letters. Im looking to copy any file that contains any amount of capital letters. So if I had files named
Zebra
uPPer
down
side
horsE
I would copy Zebra, uPPer and horsE
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I like to know the command structure of copying files/directories from a unix box using telnet session to a windows box. (4 Replies)
Discussion started by: alpheusm
4 Replies
2. Solaris
I am new user to solaris and installed solaris operating system on full Harddisk 120Gb. I am unable to copy music files to desktop and /home directory.
One thing happened while registering is- i entered login-root and its password. The message prompted your system is crashed. Is it because of... (1 Reply)
Discussion started by: patilmukundraj
1 Replies
3. Shell Programming and Scripting
hi
I want to copy all files from the current directory and move to .archive file.
Moreover,I want to add .bak to each file name, that will be copied.
How can I do that? (4 Replies)
Discussion started by: tjay83
4 Replies
4. 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
5. Shell Programming and Scripting
Hi All,
I'm trying to list some files from my log directory
and files are like this
log.20110302_20.gz
log.20110302_21.gz
log.20110302_22.gz
log.20110302_23.gz
log.20110303_00.gz
log.20110303_01.gz
log.20110303_02.gz
............
log.20110311_22.gz
log.20110311_23.gz... (2 Replies)
Discussion started by: thelakbe
2 Replies
6. 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
7. Shell Programming and Scripting
Is it possible to make a bash script such that entering a command in all capital letters would be equivalent to using "sudo" before that command?
For example:
"sudo chmod 777 foo.txt" becomes "CHMOD 777 foo.txt" (3 Replies)
Discussion started by: bloom
3 Replies
8. Shell Programming and Scripting
With use of sed/awk, how can I print all possible combinations of a word with caps/non-caps.
Eg
Applying operation on "cap" should generate output as follows.
cap
CAP
Cap
cAp
caP
CAp
cAP
CaP (12 Replies)
Discussion started by: anil510
12 Replies
9. Shell Programming and Scripting
All,
I need to grab and rename common files from several unique directory structures. For example, the directory structures looks like:
/unique_dir/common/common/common/person_name_dir/common_file.txt
There are over 90,000 of these text files that I'd like to put in a single directory as... (5 Replies)
Discussion started by: hburnswell
5 Replies
10. Shell Programming and Scripting
I'm trying to do this exact same thing, so far I have created this to move files
i've named my script CP.sh
#!/bin/bash
cd /root/my-documents/NewDir/
for f in *.doc
do cp -v $f root/my-documents/NewDir $f{%.doc}
done
When i go to run this in the console i type, bin/sh/ CP.sh
but it... (7 Replies)
Discussion started by: MKTM_93_SIMP
7 Replies
LEARN ABOUT FREEBSD
g2root
G2ROOT(1) General Commands Manual G2ROOT(1)
NAME
g2root - convert GEANT geomtry files to ROOT files
SYNOPSIS
g2rootd [-f map_name] geant_name macro_name
DESCRIPTION
You can convert a GEANT (see http://wwwinfo.cern.ch/asd/geant/index.html fore more on GEANT) geometry to ROOT geometry with the following
steps
1 Run the interactive version of GEANT and produce a Zebra RZ file detector.geom, by typing the command:
Geant > rz/file 21 detector.geom on
2 Run the g2root program to convert the Zebra RZ file into a ROOT macro detector.C:
g2root detector.geom detector.C
3 Run the following ROOT session;
root [1] .x detector.C
root [2] detector.Draw()
root [3] c1.x3d() // (this invokes the 3-d Root viewver)
root [4] TFile f("detector.root","NEW") //open a new root file
root [5] detector.Write() //Write the geometry structure
root [6] f.Write()
Note that the TNode structure currently in ROOT was not designed as a replacement for a true geometry package. The idea was mainly to draw
simple geometries in event display programs. We are currently investigating several alternatives for a true & efficient geometry package
supporting;
- a disk data base with storage of multiple geometry versions
- an interactive editor and viewer
- with 3-d views
- but also 2-d cut views
- with interfaces to existing or future MC such as GEANT3 or GEANT4
A second program called gh2root (see http://root.cern.ch/root/gh2root.html) generates automatically C++ code corresponding to the GEANT3
Zebra structures JSET, JVERTX, JKINE, JHITS and JDIGI.
SEE ALSO
root(1), h2root(1),
and
The ROOT Users Guide
available from the main ROOT website:
http://root.cern.ch
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 G2ROOT(1)