Sponsored Content
Full Discussion: Awk text processing
Top Forums Shell Programming and Scripting Awk text processing Post 302385368 by zam on Friday 8th of January 2010 01:32:54 AM
Old 01-08-2010
Awk text processing

Hi Very much appreciate if somebody could give me a clue ..
I undestand that it could be done with awk but have a limited experience.

I have the following text in the file

1 909 YES NO
2 500 No NO
.
...

1 909 262 647
2 456 234 666
..
....

I need to present it in following form

1 909 YES NO 909 262 647
2 500 No NO 456 234 666

Basically join in one line text for 1,2 etc ...

Thanks in advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Processing a text file

A file contains one name per line, such as: john doe jack bruce nancy smith sam riley When I 'cat' the file, the white space is treated as a new line. For example list=`(cat /path/to/file.txt)` for items in $list do echo $items done I get: john doe (1 Reply)
Discussion started by: TheCrunge
1 Replies

2. UNIX for Dummies Questions & Answers

text file processing

Hello! There is a text file, that contains hierarchy of menues, like: Aaaaa->Bbbbb Aaaaa->Cccc Aaaaa-> {spaces} Ddddd (it means that the full path is Aaaaa->Cccc->Ddddd ) Aaaaa-> {more spaces} Eeeee (it means that the full path is Aaaaa->Cccc->Ddddd->Eeeee ) Fffffff->Ggggg... (1 Reply)
Discussion started by: alias47
1 Replies

3. Shell Programming and Scripting

text processing ( sed/awk)

hi.. I have a file having record on in 1 line.... I want every 400 characters in a new line... means in 1st line 1-400 in 2nd line - 401-800 etc pl help. (12 Replies)
Discussion started by: clx
12 Replies

4. Shell Programming and Scripting

awk, perl Script for processing a single line text file

I need a script to process a huge single line text file: The sample of the text is: "forward_inline_item": "Inline", "options_region_Australia": "Australia", "server_event_err_msg": "There was an error attempting to save", "Token": "Yes", "family": "Family","pwd_login_tab": "Enter Your... (1 Reply)
Discussion started by: hmsadiq
1 Replies

5. Programming

awk processing / Shell Script Processing to remove columns text file

Hello, I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this : This is the output of ls command : I stored the output in a file filelist 1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies

6. Shell Programming and Scripting

Text processing using awk

I dispose of two tab-delimited files (the first column is the primary key): File 1 (there are multiple rows sharing the same key, I cannot merge them) A 28,29,30,31 A 17,18,19 B 11,13,14,15 B 8,9File 2 (there is one only row beginning with a given key) A 2,8,18,30,31 B ... (3 Replies)
Discussion started by: dovah
3 Replies

7. Shell Programming and Scripting

Text columns processing using awk

P { margin-bottom: 0.25cm; line-height: 120%; }CODE.cjk { font-family: "WenQuanYi Micro Hei",monospace; }CODE.ctl { font-family: "Lohit Hindi",monospace; }A:link { } I'm trying to build an awk statement to print from a file (file1): A 1,2,3 * A 4,5,6 ** B 1 ... (4 Replies)
Discussion started by: dovah
4 Replies

8. Shell Programming and Scripting

Help with text processing

I have an Input file which has a series of lines(which could vary) followed by two blank lines and then another series of lines(Could be any number of lines) followed by two blank lines and then repeats. I need to use filters to convert the following input file(which is an example) to an output... (7 Replies)
Discussion started by: bikerboy
7 Replies

9. Shell Programming and Scripting

Text processing

Hi, Need an advise on $ cat test.txt START field1 field2 field3 field4 field5 field6 END 12345|6|1|2|3|4|111|119 67890|6|1|3|8|9|112|000 $ (4 Replies)
Discussion started by: getmilo
4 Replies

10. Shell Programming and Scripting

awk for text processing

Hi,my file is in this format ", \"symbol\": \"Rbm38\" } ]" I want to convert it to a more user readable format _id pubmed text symbol 67196 18667844 Overexpression of UBE2T in NIH3T3 cells significantly promoted colony formation in mouse cell cultures Ube2t 56190 21764855 ... (3 Replies)
Discussion started by: biofreek
3 Replies
dboc(1) 																   dboc(1)

NAME
dboc - Diagonal Born-Oppenheimer Correction using HF and CI wave functions. DESCRIPTION
The program dboc computes Diagonal Born-Oppenheimer Correction (DBOC) using HF and CI wave functions. REFERENCES
"Cartesian" DBOC formula (aka Born-Handy-Pulay formula): 1. N. C. Handy, J. Yamaguchi, and H. F. Schaefer, J. Chem. Phys. 84, 4481 (1986). Justification for the "Cartesian" DBOC formula: 1. W. Kutzelnigg, Mol. Phys. 90, 909 (1997). Finite-difference formulation of DBOC at CI level 1. E. F. Valeev and C. D. Sherrill, J. Chem. Phys. 118, 3921 (2003). INPUT FORMAT
The following keywords are valid: WFN = string Specifies the type of wave function desired. The only valid entries at the present are SCF and DETCI. There is no default. REFERENCE = string Specifies the type of orbitals used for the single-determinant reference function. Valid choices are RHF, ROHF, and UHF. There is no default. PRINT = integer Determines the verbosity of the output. A value of 0 (the default) specifies minimal printing. :DBOC:DISPLACEMENT = real Determines the finite difference step (in a.u.). The default is 0.0005 a.u. :DBOC:DISP_PER_COORD = integer Determines the number of displacements for each coordinate. Set it to 2 to compute DBOC with standard accuracy (enough significant digits for up to second derivatives; DBOC accurate to square of displacement size), and 4 to compute DBOC with improved accuracy (DBOC accurate to the fourth power of displacement size). The default is 2. ISOTOPES = string_vector Specifies which isotope to use for each atom. Each string should specify an isotope label as defined in include/masses.h. By default, most abundant isotopes are used for each element. :DBOC:COORDS = vector This keyword should only be used by advanced users who are familiar with how DBOC is evaluated by finite differences. The keyword may be used to specify the cartesian nuclear coordinates to use in the sum expression for DBOC, their respective coefficients, and whether they are symmetric or nonsymmetric with respect displacements. dboc can use symmetry to minimize the number of wave func- tion computations. Hence this keyword need only be used for diagnostic purposes or when displacements along different coordinates need to be run separately (e.g. require different occupation vectors). The value for this keyword is an array of 3 element vec- tors. The first element of each vector is the index of the cartesian coordinate which to include into the sum. The second element is a real coefficient for the respective term in the DBOC expression. The third element is a string that can take two values, symm and nonsymm, which indicate that the coordinate is symmetric or nonsymmetric with respect to displacements, respectively. Indices are C-style, i.e. from 0 to 3*natom-1. 30 August, 2003 dboc(1)
All times are GMT -4. The time now is 11:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy