I don't want to remove trailing spaces, only the last semicolons ";" in the line.
it's not working for me; the output file is the same as the input file (no changes). Can it be because of the end of file character? I'm using GNU sed 4.1.2
I have a script that produces an output containing '/.ssh'.
I am trying to find a way of parsing only this data from a single line, without removing any other special characters contained within the output as a result of the parse.
Any help would be appreciated (6 Replies)
Hello Gurus,
I need to remove lines within a file if it contains specific criteria. Here is what I am trying to resolve:
Users of AppRuntime: (Total of 10 licenses issued; Total of 6 licenses in use)
buih02 dsktp501 AppGui 1 (compute_lic/27006 3122), start Mon 2/22 7:58
dingj1... (3 Replies)
Hi,
Could you please help me in removal of newline chracter present in between the double quotes and replacing it with space.
For example ...
Every field is wrapped with double quotes with comma delimiter, so I need to travese from first double quote occerence to till second double... (7 Replies)
I'd like to remove (do a pattern or precise replacement - this I can handle in SED using Regex )
---AFTER THE 1ST Occurrence ( i.e. on the 2nd occurrence - from the 2nd to fourth occurance ) of a specific string : type 1
-- After the 1st occurrence of 1 string1 till the 1st occurrence of... (4 Replies)
Hello
I've got a string of text with a number in pence, e.g. 0.52p, I need to remove the 'p' so that it just reads 0.52 without of course removing all the other 'p' characters.
Many thanks (1 Reply)
I'm looking to remove duplicate rows from a CSV file with a twist.
The first row is a header.
There are 31 columns. I want to remove duplicates when the first 29 rows are identical ignoring row 30 and 31 BUT the duplicate that is kept should have the shortest total character length in rows 30... (6 Replies)
I have a script that builds a database ~30 million lines, ~3.7 GB .cvs file. After multiple optimzations It takes about 62 min to bring in and parse all the files and used to take 10 min to remove duplicates until I was requested to add another column. I am using the highly optimized awk code:
awk... (34 Replies)
Hello folks!
Raised a bump on my head trying to figure this one out ;)
I have an xml file which needs to be edited, removing an entire property section in the work. Here's what the target section layout looks like:
<property name="something">
{any number of lines go here}
</property>... (7 Replies)
Discussion started by: LinQ
7 Replies
LEARN ABOUT SUNOS
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)