Sponsored Content
Top Forums Shell Programming and Scripting Adjacent row and column check in Perl Post 302574539 by vasanth.vadalur on Thursday 17th of November 2011 12:44:03 PM
Old 11-17-2011
Hi m.d.ludwig,

I got your approach.

And instead of p, i have to use R ..thts ..it solved..


Thanks
vasanth
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing the column for a row in a text file and adding another row

Hi, I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value . For Eg . if the input file has a row : abc xyz lmn 89 lm nk o p I would like the script to create something like... (9 Replies)
Discussion started by: aYankeeFan
9 Replies

2. Shell Programming and Scripting

How to subtract the adjacent lines from a single column?

Hi All, I have a file with only one column and i need to subtract the adjacent lines of the same column and print it in the same column. For Example: (Input) Col1 5 10 12 6 9 12 5 . . . .output should be like this: (12 Replies)
Discussion started by: Fredrick
12 Replies

3. Shell Programming and Scripting

Moving data from a specified column/row to another column/row

Hello, I have an input file like the following: 11_3_4 2_1_35 3_15__ _16989 Where '_' is a space. The data is in a table. Is there a way for the program to prompt the user for x1,y1 and x2,y2, where x1,y1 is the desired number (for example x=6 y=4 is a value of 4) and move to a desired spot... (2 Replies)
Discussion started by: jl487
2 Replies

4. Shell Programming and Scripting

Copy the data column to adjacent column

Hi, i have file which contains only one record like below a|b|c|.... The no of columns is not known. The expected output is as below: a|a|b|b|c|c|... Please provide me your suggestions. OS: unix Thanks, Selva (7 Replies)
Discussion started by: bharathappriyan
7 Replies

5. Shell Programming and Scripting

Subtracting each row from the first row in a single column file using awk

Hi Friends, I have a single column data like below. 1 2 3 4 5 I need the output like below. 0 1 2 3 4 where each row (including first row) subtracting from first row and the result should print below like the way shown in output file. Thanks Sid (11 Replies)
Discussion started by: ks_reddy
11 Replies

6. UNIX for Dummies Questions & Answers

awk to print first row with forth column and last row with fifth column in each file

file with this content awk 'NR==1 {print $4} && NR==2 {print $5}' file The error is shown with syntax error; what can be done (4 Replies)
Discussion started by: cdfd123
4 Replies

7. Shell Programming and Scripting

How to convert the row to column in Perl?

Dear Perl users, Could you help me how to convert from row to column if I've a case below: Linux 2014_01_24 CPU 10 Linux 2014_01_24 MEM 20 UNIX 2014_01_24 CPU 30 UNIX 2014_01_24 MEM ... (6 Replies)
Discussion started by: askari
6 Replies

8. Shell Programming and Scripting

Print row on 4th column to all row

Dear All, I have input : SEG901 5173 9005 5740 SEG902 5227 5284 SEG903 5284 5346 SEG904 5346 9010 SEG905 5400 5456 SEG906 5456 5511 SEG907 5511 9011 SEG908 5572 9015 SEG909 5622 9020 SEG910 5678 5739 SEG911 5739 5796 SEG912 5796 9025 ... (3 Replies)
Discussion started by: attila
3 Replies

9. Shell Programming and Scripting

Overwrite specific column in xml file with the specific column from adjacent line

I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file. Here is the file. <!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies

10. Shell Programming and Scripting

Print first row of column a, last row of column b if column a has the same value

I have a table with this structure: cola colb colc 1 19 lemon 20 31 lemon 32 100 lemon 159 205 cherries 210 500 cherries and need to parse it into this format: cola colb colc 1 100 lemon 159 500 cherries So I need the first row of cola and the last row of colb if colc has the... (3 Replies)
Discussion started by: coppuca
3 Replies
optking(1)																optking(1)

       cceom - equation of motion coupled cluster energy program

       DESCRIPTION

       The program cceom calculates EOM-CCSD energies using a Davidson algorithm to solve for the right-hand eigenvectors of the CC Hamiltonian.

       COMMAND LINE ARGUMENTS

       After internal coordinates are detected or generated, optking will enter a run-time mode dependent on command line arguments.

       --dot_with_Lg	-  check the orthogonality of the excited right-hand eigenvector with
			-  the ground state left eigenvector, lambda.  cclambda must be run
			- first for this to work

       REFERENCES

       1.     The  equation  of  motion  coupled-cluster  method.  A systematic biorthogonal approach to molecular excitation energies, transition
	      probabilities, and excited state properties, J. F. Stanton and R. J. Bartlett, J. Chem. Phys. 98, 7029 (1993).

       EOM_REFERENCE = integer
	      specifies the algorithm used by cceom.  useful for debugging.  also must currently be set to  ROHF,  if  you  want  to  get  triplet
	      excited states from a singlet ground state.  The default is whatever "REFERENCE" is.

       STATES_PER_IRREP = array of integers
	      specifies  the  number  of states of each irreducible representation desired.  For example, in C2v symmetry, (0 2 0 0) specifies two
	      excited states of A2 symmetry to be solved, regardless of the symmetry of the ground state.

       PROP_SYM = integer
	      specifies the symmetry of the state that should be used to compute properties.  defaults to the last  irrep  for	which  states  are
	      requested.

       PROP_ROOT = integer
	      specifies  the  number  of  the  root  (within  its  irrep) that should be used to compute properties.  defaults to the highest root
	      requested.

       EXCITATION_RANGE = excitation_range
	      used to generate initial guesses.  the larger the value, the more initial guesses are made in the Davidson algorithm.

       RESIDUAL_TOL = integer
	      Davidson algorithm will converge until the norm of the residual vector is less than 10^(-integer).  default if 4.

       EVAL_TOL = integer
	      Davidson algorithm will converge until the change in the excitation energy is less than 10^(-integer).  default if 6.

								     Sept 2002								optking(1)
All times are GMT -4. The time now is 05:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy