Sponsored Content
Top Forums Shell Programming and Scripting Print consecutive numbers in column2 Post 302599265 by Corona688 on Thursday 16th of February 2012 02:00:05 PM
Old 02-16-2012
((NR+1)%2)+1 ?
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. UNIX for Dummies Questions & Answers

Print numbers and associated text belonging to an interval of numbers

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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
PDF::API2::Util(3pm)					User Contributed Perl Documentation				      PDF::API2::Util(3pm)

NAME
PDF::API2::Util - utility package for often use methods across the package. PREDEFINED PAPERSIZES
%sizes = getPaperSizes(); Will retrieve the registered paper sizes of PDF::API2. print Dumper(\%sizes); $VAR1={ '4a' => [ 4760 , 6716 ], '2a' => [ 3368 , 4760 ], 'a0' => [ 2380 , 3368 ], 'a1' => [ 1684 , 2380 ], 'a2' => [ 1190 , 1684 ], 'a3' => [ 842 , 1190 ], 'a4' => [ 595 , 842 ], 'a5' => [ 421 , 595 ], 'a6' => [ 297 , 421 ], '4b' => [ 5656 , 8000 ], '2b' => [ 4000 , 5656 ], 'b0' => [ 2828 , 4000 ], 'b1' => [ 2000 , 2828 ], 'b2' => [ 1414 , 2000 ], 'b3' => [ 1000 , 1414 ], 'b4' => [ 707 , 1000 ], 'b5' => [ 500 , 707 ], 'b6' => [ 353 , 500 ], 'letter' => [ 612 , 792 ], 'broadsheet' => [ 1296 , 1584 ], 'ledger' => [ 1224 , 792 ], 'tabloid' => [ 792 , 1224 ], 'legal' => [ 612 , 1008 ], 'executive' => [ 522 , 756 ], '36x36' => [ 2592 , 2592 ], }; PREDEFINED COLORS
See the source of PDF::API2::Resource::Colors for a complete list. Please Note: This is an amalgamation of the X11, SGML and (X)HTML specification sets. PREDEFINED GLYPH-NAMES See the file "uniglyph.txt" for a complete list. Please Note: You may notice that apart from the 'AGL/WGL4', names from the XML, (X)HTML and SGML specification sets have been included to enable interoperability towards PDF. perl v5.14.2 2011-03-10 PDF::API2::Util(3pm)
All times are GMT -4. The time now is 04:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy