09-22-2011
selective printing
hi all
from below text
"abcd,SYS_12345,xyz,PQR, ,"
I want to print only
"abcd,SYS,xyz,PQR, ,"
i.e. taking only first three 3 chars from 2 string of comma separated file
thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there
my file looks like this
1 a b c d e f
2 a b b c d e f f g h e t t
3 a c b d e f
4 a b c
i want to print the line which has the fields containing ONLY a b c, in this case the line 4.
How can i awk it !!!?
Many Thanks in advance! (8 Replies)
Discussion started by: saint2006
8 Replies
2. Shell Programming and Scripting
Hi all , i need to grep for a string in a text file and print the string and the 3rd line above it.
As always , Thanks. (4 Replies)
Discussion started by: okiedokie
4 Replies
3. Shell Programming and Scripting
Hi,
I have an xml file having serveral smiliar lines as below
<INPUT VAR1 ="" DATATYPE ="number(p,s)" VAR2 ="" VAR3 ="3" VAR4="0" VAR5 ="ELEMITEM" VAR6 ="NO" VAR7 ="NOT A KEY" VAR8 ="17" LEVEL ="0" NAME ="UNIX" NULLABLE ="NOTNULL" OCCURS ="0" OFFSET ="19" PHYSICALLENGTH ="15"... (3 Replies)
Discussion started by: dips_ag
3 Replies
4. Shell Programming and Scripting
Hi,
i need help to print number from different field
INPUT:
Student1 10 20
Student2 30 40
Student3 50 60
Student4 70 80
Desired Output:
1 20-30
2 40-50
3 60-70
Thank you! (5 Replies)
Discussion started by: saint2006
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
6. Shell Programming and Scripting
Hi,
I have a file with lines like this.
2 7 18 ggcgt anna
2 7 18 hhchc sam
3 7 18 hhdjcc ross
4 7 18 hhcjd jenny
0 8 21 jjdhs sam
3 8 21 kkok bush
2 9 24 kosss BrenhamIf the values of the second column are equal, print only those lines with the least first column value. So in... (5 Replies)
Discussion started by: polsum
5 Replies
7. Shell Programming and Scripting
I have the following contents in a file
---- CRITICAL: altered for /usr/bin/bin1 ---- OK: /usr/sbin/bin2 result fine ---- OK: /usr/sbin/bin3 result fine ---- CRITICAL: altered for /usr/bin/bin4 ---- OK: /usr/bin/bin5 result fine ---- OK: /usr/bin/bin6 result fine ---- CRITICAL: altered for... (9 Replies)
Discussion started by: anil510
9 Replies
8. Shell Programming and Scripting
Hi,
I have file with thousands of lines somewhat similar to the below 6 lines
06MXXXXXXXXXXXXXXXX 0328 003529 J27300022 MICROSOFT *MSN
06<1 000000001344392 JPN151-85830 MSBILL.INFO F
06<A17087454000328651551 MSBILL.INFO ... (16 Replies)
Discussion started by: dsid
16 Replies
9. Shell Programming and Scripting
Hi Gurus,
I have following input file. I tried multiple awk combinations to print selected columns without success.
HEX ID Name ver FLRGT Start Time Total Shared End Date
----- -------- --- ------ ------------------------ -------------- -------... (4 Replies)
Discussion started by: shunya
4 Replies
10. UNIX for Beginners Questions & Answers
I apologize in advance, but I continue to have trouble searching for matches between two files and then printing portions of each to output in awk and would very much appreciate some help.
I have data as follows:
File1
PS012,002 PRQ 0 1 1 17 1 0 -1 3 2 1 2 -1 ... (7 Replies)
Discussion started by: jvoot
7 Replies
LEARN ABOUT DEBIAN
pdb2pqr
PDB2PQR(1) PDB2PQR Manual PDB2PQR(1)
NAME
pdb2pqr - Generate PQR files for use in electrostatics calculations
SYNOPSIS
pdb2pqr [--nodebump] [--noopt] [--chain] [--assign-only] [--clean] [--ffout=name] [--with-ph=ph] [--apbs-input] [--ligand=path]
[[--verbose] | [-v]] --ff=forcefield path output-path
pdb2pqr {--help | -h}
DESCRIPTION
pdb2pqr automates many of the common tasks of preparing structures for continuum electrostatics calculations, providing a utility for
converting protein files in PDB format (path) to PQR format (output-path). These tasks include:
o Adding a limited number of missing heavy atoms to biomolecular structures
o Determining side-chain pKas
o Placing missing hydrogens
o Optimizing the protein for favorable hydrogen bonding
o Assigning charge and radius parameters from a variety of force fields
OPTIONS
pdb2pqr accepts the following options:
--ff=forcefield
The forcefield to use. Current values are amber, charm, parse and tyl06.
--help, -h
Print a help message and exit.
--nodebump
Do not perform debumping operation.
--noopt
Do not perform hydrogen optimization.
--chain
Keep the chain ID in the output PQR file.
--assign-only
Only assigns charges to add atoms, debump, or optimize.
--clean
Do no optimization, atom addition, or parameter assignment, just return the original PDB file in alligned format.
--ffout=name
Instead of using the standard caninical naming scheme for residue and atom names, use the names from the given forcefield.
--with-ph=ph
Use propka to calculate pKas and apply them to the molecule given the pH value. Actual PropKa results will be output to
output-path.propka.
--apbs-input
Create an APBS input file based on the generated PQR file. Also create a Python pickle for using these parameters in other programs.
--ligand=path
Calculate the parameters for the ligand in MOL2 format at the given path. Pdb2pka must be compiled.
--verbose, -v
Print additional information to screen.
EXTENSIONS
Extensions add functionality to PDB2PQR and are called by passing a parameter to pdb2pqr. They put their results into files located in
output-path.
The following extensions can be used by pdb2pqr:
--phi
Print the per-residue backbone phi angle to output-path.phi.
--psi
Print the per-residue backbone psi angle to output-path.phi.
--hbond
Print a list of hygrogen bonds to output-path.hbond.
--chi
Print the per-residue backbone chi angle to output-path.chi.
--contact
Print a list of contacts to output-path.con.
--hbondwhatif
Print a list of hydrogen bonds to output-path.hbo.
--salt
Print a list of salt bridges to output-path.salt.
--rama
Print the per-residue phi and psi angles to outpath-path.rama.
CITING PDB2PQR
Please acknowledge your use of pdb2pqr by citing:
Dolinsky TJ, Nielsen JE, McCammon JA, Baker NA. PDB2PQR: an automated pipeline for the setup, execution, and analysis of Poisson-Boltzmann
electrostatics calculations. Nucleic Acids Research, 32, W665-W667 (2004).
SEE ALSO
psize(1)
AUTHOR
Manuel Prinz <debian@pinguinkiste.de>
Wrote this manpage for the Debian System.
COPYRIGHT
Copyright (C) 2008 Manuel Prinz
pdb2pqr 2008-06-04 PDB2PQR(1)