Sponsored Content
Top Forums Shell Programming and Scripting Extract Specific Information from a particular field Post 302945637 by rramkrishnas on Monday 1st of June 2015 07:09:03 AM
Old 06-01-2015
Hi Sea,

Thanks for youre quick reply, however the issue is that, position of CSP is not fixed, it varies depending on other informations. I need something to identify position of CSP then extract CSP information till next "&".
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do you extract the information from a library?

hi all, i am quite new with Perl (just 1 week of experience) and i am suppose to understand the usage of library, which i can't, anyway... i came across this library...i think from the linux redhat redhat.linux.lib.pl, there are a couple of functions there that can be used to retrieve information... (3 Replies)
Discussion started by: mercz
3 Replies

2. Shell Programming and Scripting

modify a few field of the record information

Hello, I have the following record in a text file, i would like modify some field: 1 - remove all space between ",", but the company name of word will not delete. Anyway, I can use the following statement to do it. 's/^ *//;s/ *, */,/g;s/ *$//' file 2. field #12, I need to modify to time... (11 Replies)
Discussion started by: happyv
11 Replies

3. HP-UX

extract field of characters after a specific pattern - using UNIX shell script

Hello, Below is my input file's content ( in HP-UX platform ): ABCD120672-B21 1 ABCD142257-002 1 ABCD142257-003 1 ABCD142257-006 1 From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could... (2 Replies)
Discussion started by: jansat
2 Replies

4. Shell Programming and Scripting

Problem in getting the ps information with field separator

Dear all I have the following problem that want to have your advices. I want to capture the `ps auxwww | head -30` image with field separator (|) in my script My expect output USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root | 774 | 18.5 | 0.0 | 12 | 19716 | - |... (5 Replies)
Discussion started by: on9west
5 Replies

5. Shell Programming and Scripting

Extract data into file with specific field specs

:confused: I have a tab delimited file that I need to extract data from and into a file with specific field specs. Each field has to be a certain amount of characters. So, the name field (from delimited file) might have only 15 characters but needs to be 25 (in new file) so I need to insert spaces... (5 Replies)
Discussion started by: criddel
5 Replies

6. Shell Programming and Scripting

Replace specific field on specific line sed or awk

I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work. Brief overview: I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Discussion started by: crownedzero
14 Replies

7. UNIX and Linux Applications

Reflection Macro: Use Current Date Information in specific field of report

Hi Everyone, New to the forum, and have my first question. I have the following Macro currently being used within Telnet to run a report for the date being entered. However, now I need the Macro to input the day after today to the the day after today. Example: If today is May 9, 2012 - the... (0 Replies)
Discussion started by: CipherEffect
0 Replies

8. Shell Programming and Scripting

How to print with awk specific field different from specific character?

Hello, i need help with awk. I have this file: cat number DirB port 67 er_enc_out 0 er_bad_os 0 DirB port 71 er_enc_out 56 er_bad_os 0 DirB port 74 er_enc_out 0 er_bad_os 0 DirB port 75 ... (4 Replies)
Discussion started by: elilmal
4 Replies

9. Shell Programming and Scripting

How to extract specific information?

hi, i have a file A like this: ******************* No 2823 ******************** contig15205- G383C4U02H4G80+ is in contig15205- G383C4U02HGLXM- is in contig15205- G383C4U01C3HIZ+ is in contig15205- ... (3 Replies)
Discussion started by: the_simpsons
3 Replies

10. Shell Programming and Scripting

Extract information from file

In a particular directory, there can be 1000 files like below. filename is job901.ksh #!/bin/ksh cront -x << EOJ submit file=$PRODPATH/scripts/genReport.sh maxdelay=30 &node=xnode01 tname=job901 &pfile1=/prod/mldata/data/test1.dat ... (17 Replies)
Discussion started by: vedanta
17 Replies
Mono(sn)																  Mono(sn)

NAME
sn - Digitally sign/verify/compare strongnames on CLR assemblies. SYNOPSIS
sn [-q | -quiet] [options] [parameters] DESCRIPTION
Digitally sign, verify or compare CLR assemblies using strongnames. You can use the sn command to create "snk files" using the -k option described below. CONFIGURATION OPTIONS
Configuration options are stored in the machine.config configuration file under /configuration/strongNames. -c provider Change the default CSP (Crypto Service Provider). Currently not supported in Mono. -m [y|n] Use a machine [y] key container or a user [n] key container. Currently not supported in Mono. -Vl List the verification options. The list is kept under /configuration/ strongNames/verificationSettings in machine.config. -Vr assembly [userlist] Exempt the specified assembly from verification for the specified user list. Currently not supported by sn. You must edit machine.config manually if you require this. -Vu assembly Remove the exemption entry for the specified assembly. Currently not supported by sn, you must edit machine.config manually if you require this. -Vx Remove all exemptions entries. Currently not supported by sn, you must edit machine.config manually if you require this. CSP RELATED OPTIONS
-d container Delete the keypair present in the specified key container. -i keypair.snk container Import the specified strongname file into the specified container. -pc container publickey Export the public key from the specified CSP container to the specified file. CONVERSION OPTIONS
-e assembly output.pub Export the assembly public key to the specified output file. -p keypair.snk output.pub Export the public key from the specified strongname key file (SNK) or from a PKCS#12/PFX password protected file to the specified output file. -o input output.txt Convert the input file to a CSV file (using decimal). -oh input output.txt Convert the input file to a CSV file (using hexadecimal). STRONGNAME SIGNING OPTIONS
-D assembly1 assembly2 Compare if assembly1 and assembly are the same exception for their signature. This is done by comparing the hash of the metadata of both assembly. -k [size] keypair.snk Create a new strongname keypair in the specified file. The default key length is 1024 bits and MUST ALWAYS be used when signing 1.x assemblies. Any value from 384 to 16384 bits (in increments of 8 bits) is a valid key length to sign 2.x assemblies. To ensure max- imum compatibility you may want to continue using 1024 bits keys. Note that there's no good reason, even if it's possible, to use length lesser than 1024 bits. -R assembly keypair.snk Re-sign the specified assembly using the specified strongname keypair file (SNK) or a PKCS#12/PFX password protected file. You can only sign an assembly with the private key that match the public key inside the assembly (unless it's public key token has been remapped in machine.config). -Rc assembly container Re-sign the specified assembly using the specified strongname container. -t file Show the public key token from the specified file. -tp file Show the public key and the public key token from the specified file. -T assembly Show the public key token from the specified assembly. -Tp assembly Show the public key and the public key token from the specified assembly. -v assembly Verify the specified assembly signature. -vf assembly Verify the specified assembly signature (even if disabled). HELP OPTIONS
-h , -? Display basic help about this tool. -h config , -? config Display configuration related help about this tool. -h csp , -? csp Display Cryptographic Service Provider related help about this tool. -h convert , -? convert Display conversion related help about this tool. -h sn , -? sn Display strongname related help about this tool. CONFIGURATION FILE
Strongnames configuration is kept in "machine.config" file. Currently two features can be configured. /configuration/strongNames/pubTokenMapping This mechanism lets Mono remap a public key token, like the ECMA token, to another public key for verification. This is useful in two scenarios. First, assemblies signed with the "ECMA key" need to be verified by the "runtime" key (as the ECMA key isn't a public key). Second, many assemblies are signed with private keys that Mono can't use (e.g. System.Security.dll assembly). A new key can- not be used because it should change thr strongname (a new key pair would have a new public key which would produce a new token). Public key token remapping is the solution for both problems. Each token must be configured in a "map" entry similar to this one: <map Token="b77a5c561934e089" PublicKey="00..." /> /configuration/strongNames/verificationSettings It is often useful during development to use delay signed assemblies. Normally* the runtime wouldn't allow delay-signed assemblies to be loaded. This feature allows some delay-signed assemblies (based on their public key token, optionally assembly name and user name) to be used like they were fully signed assemblies. [*] Note that Mono 1.0 "runtime" doesn't validate strongname signatures so this option shouldn't be required in most scenarios. AUTHOR
Written by Sebastien Pouliot COPYRIGHT
Copyright (C) 2003 Motus Technologies. Copyright (C) 2004 Novell. Released under BSD license. MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details. WEB SITE
Visit http://www.mono-project.com for details SEE ALSO
secutil(1) Mono(sn)
All times are GMT -4. The time now is 02:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy