Sponsored Content
Top Forums Shell Programming and Scripting replace 2 identical strings on different lines Post 302120512 by ghostdog74 on Wednesday 6th of June 2007 07:36:16 PM
Old 06-06-2007
where did you get your "pqr stu" and "vwz yz" from?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ignore identical lines

Hello Experts, I have two files called "old" and "new". My old file contains 10 lines and my new file contains 10 + "n" lines. The first field in both these files contain ID. I sort these two files on ID. I am interested in only the lines that are in the new file and not in old. I tried... (4 Replies)
Discussion started by: forumthreads
4 Replies

2. Shell Programming and Scripting

Using Bash/Sed to delete between identical strings

Hi. I'm hoping that someone can help me with a bash script to delete a block of lines from a file. What I want to do is delete every line between two stings that are the same, including the line the first string is on but not the second. (Marked lines to match with !) For example if I... (2 Replies)
Discussion started by: Zykr
2 Replies

3. Shell Programming and Scripting

replace a string with contents of a txt file containing multiple lines of strings

Hello everyone, ive been trying to replace a string "kw01" in an xml file with the contents of a txt file having multiple lines. im a unix newbie and all the sed combinations i tried resulted to being garbled. Below is the contents of the txt file: RAISEDATTIME --------------------... (13 Replies)
Discussion started by: 4dirk1
13 Replies

4. SuSE

finding and removing block of identical strings

i have a problem in finding block of identical strings...i solved the problem in finding consecutive identical words and now i want to expand the code in order to find and remove consecutive identical block of strings... for example the awk code removing consecutive identical word is:... (2 Replies)
Discussion started by: cocostaec
2 Replies

5. Programming

finding and removing block of identical strings

i have a problem in finding block of identical strings...i solved the problem in finding consecutive identical words and now i want to expand the code in order to find and remove consecutive identical block of strings... for example the awk code removing consecutive identical word is:... (2 Replies)
Discussion started by: cocostaec
2 Replies

6. Shell Programming and Scripting

finding and removing block of identical strings

i have a problem in finding block of identical strings...i solved the problem in finding consecutive identical words and now i want to expand the code in order to find and remove consecutive identical block of strings... for example the awk code removing consecutive identical word is:... (2 Replies)
Discussion started by: cocostaec
2 Replies

7. UNIX for Dummies Questions & Answers

more than 10 identical lines

I have a file that looks like this 10 user1s, 5 user2s and 10 users3. 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.2 user2 10.10.1.2 user2 10.10.1.2 user2... (7 Replies)
Discussion started by: lawsongeek
7 Replies

8. Shell Programming and Scripting

sed print all lines between second and third identical lines

I am trying to extract a table of data (mysql query output) from a log file. I need to print everything below the header and not past the end of the table. I have spent many hours searching with little progress. I am matching the regexp +-\{99\} with no problem. I just can't figure out how to print... (5 Replies)
Discussion started by: godfreydanials
5 Replies

9. Ubuntu

Merging strings that have identical rownames in a dataframe

Hi I have a data frame with repeated names in column 1, and different descriptors in column 2. I want to merge/cat strings that have same entry in column 1 into one row with any separator. Example for input: Cvel_1 KOG0155 Cvel_1 KOG0306 Cvel_1 KOG3259 Cvel_1 ... (4 Replies)
Discussion started by: Alyaa
4 Replies

10. Shell Programming and Scripting

Print text between 2 identical strings

hey, i m having a hard time trying to print only the first occurrence between 2 idenicale strings. for the following output: please help me im a noob please im a noob help me noob please help me im a noob please im a noob help me noob (3 Replies)
Discussion started by: boaz733
3 Replies
editconf(1)					 GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c				       editconf(1)

NAME
editconf - edits the box and writes subgroups VERSION 4.5.4-dev-20110404-bc5695c SYNOPSIS
editconf -f conf.gro -n index.ndx -o out.gro -mead mead.pqr -bf bfact.dat -[no]h -[no]version -nice int -[no]w -[no]ndef -bt enum -box vec- tor -angles vector -d real -[no]c -center vector -aligncenter vector -align vector -translate vector -rotate vector -[no]princ -scale vec- tor -density real -[no]pbc -resnr int -[no]grasp -rvdw real -sig56 real -[no]vdwread -[no]atom -[no]legend -label string -[no]conect DESCRIPTION
editconf converts generic structure format to .gro, .g96 or .pdb. The box can be modified with options -box, -d and -angles. Both -box and -d will center the system in the box, unless -noc is used. Option -bt determines the box type: triclinic is a triclinic box, cubic is a rectangular box with all sides equal dodecahedron repre- sents a rhombic dodecahedron and octahedron is a truncated octahedron. The last two are special cases of a triclinic box. The length of the three box vectors of the truncated octahedron is the shortest distance between two opposite hexagons. Relative to a cubic box with some periodic image distance, the volume of a dodecahedron with this same periodic distance is 0.71 times that of the cube, and that of a truncated octahedron is 0.77 times. Option -box requires only one value for a cubic, rhombic dodecahedral, or truncated octahedral box. With -d and a triclinic box the size of the system in the x-, y-, and z-directions is used. With -d and cubic, dodecahedron or octahedron boxes, the dimensions are set to the diameter of the system (largest distance between atoms) plus twice the specified distance. Option -angles is only meaningful with option -box and a triclinic box and cannot be used with option -d. When -n or -ndef is set, a group can be selected for calculating the size and the geometric center, otherwise the whole system is used. -rotate rotates the coordinates and velocities. -princ aligns the principal axes of the system along the coordinate axes, with the longest axis aligned with the x-axis. This may allow you to decrease the box volume, but beware that molecules can rotate significantly in a nanosecond. Scaling is applied before any of the other operations are performed. Boxes and coordinates can be scaled to give a certain density (option -density). Note that this may be inaccurate in case a .gro file is given as input. A special feature of the scaling option is that when the factor -1 is given in one dimension, one obtains a mirror image, mirrored in one of the planes. When one uses -1 in three dimensions, a point-mirror image is obtained. Groups are selected after all operations have been applied. Periodicity can be removed in a crude manner. It is important that the box vectors at the bottom of your input file are correct when the periodicity is to be removed. When writing .pdb files, B-factors can be added with the -bf option. B-factors are read from a file with with following format: first line states number of entries in the file, next lines state an index followed by a B-factor. The B-factors will be attached per residue unless an index is larger than the number of residues or unless the -atom option is set. Obviously, any type of numeric data can be added instead of B-factors. -legend will produce a row of CA atoms with B-factors ranging from the minimum to the maximum value found, effec- tively making a legend for viewing. With the option -mead a special .pdb ( .pqr) file for the MEAD electrostatics program (Poisson-Boltzmann solver) can be made. A further prerequisite is that the input file is a run input file. The B-factor field is then filled with the Van der Waals radius of the atoms while the occupancy field will hold the charge. The option -grasp is similar, but it puts the charges in the B-factor and the radius in the occupancy. Option -align allows alignment of the principal axis of a specified group against the given vector, with an optional center of rotation specified by -aligncenter. Finally, with option -label, editconf can add a chain identifier to a .pdb file, which can be useful for analysis with e.g. Rasmol. To convert a truncated octrahedron file produced by a package which uses a cubic box with the corners cut off (such as GROMOS), use: editconf -f in -rotate 0 45 35.264 -bt o -box veclen -o out where veclen is the size of the cubic box times sqrt(3)/2. FILES
-f conf.gro Input Structure file: gro g96 pdb tpr etc. -n index.ndx Input, Opt. Index file -o out.gro Output, Opt. Structure file: gro g96 pdb etc. -mead mead.pqr Output, Opt. Coordinate file for MEAD -bf bfact.dat Input, Opt. Generic data file OTHER OPTIONS
-[no]hno Print help info and quit -[no]versionno Print version info and quit -nice int 0 Set the nicelevel -[no]wno View output .xvg, .xpm, .eps and .pdb files -[no]ndefno Choose output from default index groups -bt enum triclinic Box type for -box and -d: triclinic, cubic, dodecahedron or octahedron -box vector 0 0 0 Box vector lengths (a,b,c) -angles vector 90 90 90 Angles between the box vectors (bc,ac,ab) -d real 0 Distance between the solute and the box -[no]cno Center molecule in box (implied by -box and -d) -center vector 0 0 0 Coordinates of geometrical center -aligncenter vector 0 0 0 Center of rotation for alignment -align vector 0 0 0 Align to target vector -translate vector 0 0 0 Translation -rotate vector 0 0 0 Rotation around the X, Y and Z axes in degrees -[no]princno Orient molecule(s) along their principal axes -scale vector 1 1 1 Scaling factor -density real 1000 Density (g/L) of the output box achieved by scaling -[no]pbcno Remove the periodicity (make molecule whole again) -resnr int -1 Renumber residues starting from resnr -[no]graspno Store the charge of the atom in the B-factor field and the radius of the atom in the occupancy field -rvdw real 0.12 Default Van der Waals radius (in nm) if one can not be found in the database or if no parameters are present in the topology file -sig56 real 0 Use rmin/2 (minimum in the Van der Waals potential) rather than sigma/2 -[no]vdwreadno Read the Van der Waals radii from the file vdwradii.dat rather than computing the radii based on the force field -[no]atomno Force B-factor attachment per atom -[no]legendno Make B-factor legend -label string A Add chain label for all residues -[no]conectno Add CONECT records to a .pdb file when written. Can only be done when a topology is present KNOWN PROBLEMS
- For complex molecules, the periodicity removal routine may break down, in that case you can use trjconv. SEE ALSO
gromacs(7) More information about GROMACS is available at <http://www.gromacs.org/>. Mon 4 Apr 2011 editconf(1)
All times are GMT -4. The time now is 03:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy