Print consecutive numbers in column2


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Print consecutive numbers in column2
# 8  
Old 02-16-2012
You the coder!

Great help!!!

Thanks it works.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check/print missing number in a consecutive range and remove duplicate numbers

Hi, In an ideal scenario, I will have a listing of db transaction log that gets copied to a DR site and if I have them all, they will be numbered consecutively like below. 1_79811_01234567.arc 1_79812_01234567.arc 1_79813_01234567.arc 1_79814_01234567.arc 1_79815_01234567.arc... (3 Replies)
Discussion started by: newbie_01
3 Replies

2. Shell Programming and Scripting

awk print values between consecutive lines

I have a file in below format: file01.txt TERM TERM TERM ABC 12315 68.53 12042013 165144 ABC 12315 62.12 12042013 165145 ABC 12315 122.36 12052013 165146 ABC 12315 582.18 12052013 165147 ABC 12316 2.36 12052013 165141 ABC 12316 ... (8 Replies)
Discussion started by: alex2005
8 Replies

3. UNIX for Dummies Questions & Answers

Sum every 3 consecutive numbers in a column

Dear All, I have a file with only one column. And I want to add every 3 consecutive numbers together and print the result. Input File: 21.1 10 10 55 11 99 10 8 4 Expected Output: 41.1 (5 Replies)
Discussion started by: NamS
5 Replies

4. Shell Programming and Scripting

Adding the corresponding values for every 5th consecutive numbers

Dear All, I have a file which is as follows: Input File: 231 100.1 233 99 235 200.9 238 80.1 239 90.2 240 77.0 243 99.5 245 16.20 246 13.55 247 11.8 249 13.7 250 99.6 (1 Reply)
Discussion started by: NamS
1 Replies

5. UNIX for Dummies Questions & Answers

How to combine and insert missing consecutive numbers - awk or script?

Hi all, I have two (2) sets of files that are based on some snapshots of database that I want to merge and insert any missing sequential number. Below are example representation of these files: file1: DATE TIME COL1 COL2 COL3 COL4 ID 01/10/2013 0800 100 ... (3 Replies)
Discussion started by: newbie_01
3 Replies

6. Shell Programming and Scripting

Disruption of consecutive numbers

I do have a tab delimited file with the following format 200 46 201 67 204 89 205 98 206 89 208 890 210 23 .. ... 100's of rows I would like to output the missing consecutive number of the first column. The expected output will be: (1 Reply)
Discussion started by: Lucky Ali
1 Replies

7. UNIX for Dummies Questions & Answers

Print numbers and associated text belonging to an interval of numbers

##### (0 Replies)
Discussion started by: lucasvs
0 Replies

8. UNIX for Dummies Questions & Answers

how to print out consecutive two line from a text file

the text file like below's input: aaaaaaaaafdsfsda sdfsadfasdfasfds sdfadsf asdfadf asdfa adfsfsafas sdfsfafads asdfasdfsa I want to print out consecutive two line output: aaaaaaaaafdsfsda (1 Reply)
Discussion started by: vincent_W
1 Replies

9. Shell Programming and Scripting

Finding consecutive numbers in version names on a txt file

Hi all. I have a directory which contains files that can be versioned. All the files are named according to a pattern like this: TEXTSTRING1-001.EXTENSION TEXTSTRING2-001.EXTENSION TEXTSTRING3-001.EXTENSION ... TEXTSTRINGn-001.EXTENSION If a file is versioned, a file called ... (10 Replies)
Discussion started by: fox1212
10 Replies

10. Shell Programming and Scripting

Inserting a range of consecutive numbers into a text file

I have a text file in the following format .... START 1,1 2,1 3,1 .. .. 9,1 10,1 END .... I want to change to the output to .... START 1,1 2,1 3,1 .. (4 Replies)
Discussion started by: VNR
4 Replies
Login or Register to Ask a Question
llines(1)						      General Commands Manual							 llines(1)

NAME
llines - LifeLines genealogy program SYNOPSIS
llines [OPTION]... llines [OPTION]...Database DESCRIPTION
llines invokes the LifeLines genealogy program. For up to date documentation please refer to the Documentation section of this man page. LifeLines is a program to manipulate genealogical information in lineage-linked GEDCOM format. It has a curses interface, and a built-in interpreter for its own genealogical report language. OPTIONS
The following options are some of the options available for llines. -C Specify configuration file location. -F Finnish option (only available if compiled with Finnish flag) -I Specify a user property (e.g. -ILLEDITOR=gvim) -a Log dynamic memory operation (for debugging) -c Supply cache values (eg, -ci400,4000f400,4000 sets direct indi & fam caches to 400, and indirect indi & fam caches to 4000) -d Developmental/debug mode (signals are not caught) -f Force open a database (only for use if reader/writer count is wrong) -i Open database with immutable access (no protection against other access -- for use on read-only media) -k Always show key values (normally key is not shown if a REFN is shown) -l Lock (-ly) or unlock (-ln) a database for use with read only media (access to a locked database is treated as immutable) -n Do not use traditional family rules -o Specify program output filename (eg, -o/tmp/mytests) -r Open database with read-only access (protect against other writer access) -uCOLS,ROWS Specify window size (eg, -u120,34 specifies 120 columns by 34 rows) -w Open database with writeable access (protecte against other reader or writer access) -x Execute a single lifelines report program directly -z Use normal ASCII characters for drawing lines in user interface rather than the vt100 special characters -? Display options summary, (on UNIX or Linux use the -h option) llexec is a version of llines without the user interface for non-interactive processing of report programs. (Typically used with the -x option.) dbverify is a utility program to verify Lifelines databases. For information about options, run dbverify with the -h option. FILES
/etc/lifelines.conf ~/.linesrc ~/lines.cfg ./linesrc ./lines.cfg Possible locations for Lifelines configuration file Lifelines looks for a configuration file for various settings. See section Sys- tem And User Properties in the userguide for details. DOCUMENTATION
The LifeLines documentation should be installed as part of the installation, and may also be viewed at the project site: http://life- lines.sourceforge.net. Look for ll-userguide and ll-reportmanual (with appropriate extensions for text, html and pdf formats). The normal installation process includes a large number of sample report programs that you can customize to suit your needs. In the directory con- taining these reports you should find a file named index.html which gives a very brief summary of each report. SEE ALSO
llexec(1), dbverify(1), btedit(1) Lifelines 3.0.61 2007 Aug llines(1)