04-21-2008
Hi Era,
Thank you very much, it works!!
Hi Frank and Summer,
Thank you for your help!! But the perl works for binary file.
Thanks again!!
Victor Cheung
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
variable1="This is a car"
Now I want to replace the content of variable1, "car" to "dog". Is there any simple command I can use.
Thanks.
Joseph (4 Replies)
Discussion started by: josephwong
4 Replies
2. Shell Programming and Scripting
Hi All,sorry for inconvience....please find the attachement for my question i am unable to paste the question here....please help me in slving thisthanksk.k (4 Replies)
Discussion started by: G.K.K
4 Replies
3. UNIX for Advanced & Expert Users
Hi,
I need help. I have XML file as below
<a n="infoLevel">
<v s="true"/>
</a>
<a n="localAddr">
<v s="server.host.com"/>
</a>
<a n="ListenPort">
<v s="21111"/>
</a>
I need to find variable "ListenPort" in line and then replace... (4 Replies)
Discussion started by: rdtrivedi
4 Replies
4. Shell Programming and Scripting
Hey,
I am gettin a bit crazy with my script. I have several input datas with the same name (5.ill) in different folders (daysim_01, daysim_02, etc.). The 4. column of each of the data has to be summed with each other and then hass to be written in one new file.
So file1:
1 1 0 1
2 1 1 2 ... (7 Replies)
Discussion started by: ergy1983
7 Replies
5. Shell Programming and Scripting
Format of one input file:
# >length=1
seq program data 909 1992
seq program record 909 1190
Desired output result:
# >length=1
length=1 program data 909 1992
length=1 program record 909 1190
I wanna to replace all the column 1 content (exclude the content start with "#") with the... (5 Replies)
Discussion started by: cpp_beginner
5 Replies
6. Shell Programming and Scripting
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies
7. Shell Programming and Scripting
Hi,
Below is my input file :
AAAG(12) TC(14)
AACCCT(66) AACCCT(30) AACCCT(18) AACCCT(48)
TCTG(12) TCTG(20) TCTG(16) AC(12) AC(12) TCTG(16) TCTG(12) AC(12) AC(12) AC(12)
AC(26) AC(14)
AGTG(12) AC(24)
AGTG(12) TCC(12)
Desired output :
AAAG TC
AACCCT AACCCT AACCCT AACCCT
TCTG TCTG... (4 Replies)
Discussion started by: perl_beginner
4 Replies
8. Shell Programming and Scripting
I have a wordpress site. I need add "post_title" to all my "post_content" mysql field. Thanks.
my content: Free <b>Online Tips</b> output:Free post_title <b>Online Tips</b>:
This code does not work:
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'Free <b>Online... (0 Replies)
Discussion started by: tara123
0 Replies
9. Shell Programming and Scripting
Input file
G A
G A,T
A C
A G,T,C
T C
.
.
Desired Output file
G A
G A
G T
A C
A G
A T
A C
T C (4 Replies)
Discussion started by: perl_beginner
4 Replies
10. Shell Programming and Scripting
Hello all ; )
I'got a file1 with a lot of emails like :
fistname.lastname@domaine1.comAnd another file2 with emails like
fistname.lastname@domaine2.ct.netI need a shell script that will read each line from the file1 and try to find if in file2 the fistname.lastname exist.
If yes, the... (1 Reply)
Discussion started by: Aswex
1 Replies
LEARN ABOUT DEBIAN
grid-ca-package
GRID-CA-PACKAGE(1) Globus Commands GRID-CA-PACKAGE(1)
NAME
grid-ca-package - Prepare a CA certificate, configuration, and policy for distribution
SYNOPSIS
grid-ca-package [-help] [-h] [-usage] [-version] [-versions]
grid-ca-package [-ca HASH] [-g] [-b] [-r] [-d]
DESCRIPTION
The grid-ca-package utility creates a tarball containing an RPM spec file and the files needed to use a CA with grid tools. It optionally
will also create a GPT package for distributing a CA.
By default, the grid-ca-package utility displays a list of installed grid CA and prompts for which CA to package. It then creates a tarball
containing the CA certificate, signing policy, CA configuration files, and an spec script to generate a binary RPM package containing the
CA. If the CA hash is known prior to running grid-ca-package, it may provided as an argument to the -ca parameter to avoid prompting.
In addition to generating a spec script and tarball, grid-ca-package creates a GPT package if either the -g or -b options are used on the
command-line. These packages may be used to distribute a CA and configuration to systems which do not support RPM packages.
The grid-ca-package utility writes the package tarballs to the current working directory.
The full set of command-line options to grid-ca-package follows.
-help, -h, -usage
Display the command-line options to grid-ca-package and exit.
-version, -versions
Display the version number of the grid-ca-package command. The second form includes more details.
-ca CA
Use the CA whose name matches the hash string CA. When invoked with this option, grid-ca-package runs non-interactively.
-g
Create a GPT binary package in addition to the RPM script tarball. This package may be installed on other systems using the gpt-install
program.
-b
Create a GPT binary package with GPT metadata located in the path expected by GPT 3.2 (used in Globus 2.0.0-5.0.x) instead of
${datadir}/globus/packages as used in Globus 5.2.x. This option overrides the -g command-line option.
-r
Create a binary RPM package for the CA. This option currently only works on RPM-based distributions.
-d
Create a binary Debian package for the CA. This option currently only works on Debian-based distributions.
EXAMPLES
Package a Simple CA with hash 0146c503
% grid-ca-package -ca 0146c503
Creating RPM source tarball... done
globus_simple_ca_0146c503.tar.gz
ENVIRONMENT VARIABLES
The following environment variables affect the execution of grid-ca-package:
GLOBUS_LOCATION
Non-standard installation path of the Globus toolkit.
SEE ALSO
grid-cert-request(1), grid-ca-sign(1), grid-default-ca(1), grid-ca-create(1)
AUTHOR
University of Chicago
Globus Toolkit 5.2.0 07/22/2011 GRID-CA-PACKAGE(1)