Sponsored Content
Top Forums Shell Programming and Scripting Use awk to count and rearrange entries Post 302884660 by aydj on Tuesday 21st of January 2014 08:54:54 AM
Old 01-21-2014
The Order is very Important
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in AWK;Search String and rearrange columns

Hi AWK Experts, file1.txt contains: 29b11b820ddcc:-|OHad.perWrk|spn_id=AH111|spn_ordtyp=MY_REQ|msg_typ=ah.ntf.out|spn_ordid=928176|spn_nid=3|msg_strt=1175615334703|msg_que=oput|diff=371|17:48:55,074|17:48:55,084|10 file2.txt contains:... (2 Replies)
Discussion started by: spring_buck
2 Replies

2. Shell Programming and Scripting

rearrange a file

hi! in awk, i have a file like this: Trace1: WRIT,Trace2: BLAN,Trace3: BLAN, -47.2120018005371,,,39815.4809027778 -46.3009986877441,,,39815.4809027778 -46.277000427246,,,39815.4809143519 -46.7389984130859,,,39815.4809259259 -46.3460006713867,,,39815.4809259259... (10 Replies)
Discussion started by: riderman
10 Replies

3. Shell Programming and Scripting

awk sed cut? to rearrange random number of fields into 3 fields

I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want. The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Discussion started by: axo959
4 Replies

4. UNIX for Dummies Questions & Answers

Rearrange columns and rows with awk

Hello, I have the following problem I have two columns with numbers arranged as follows: x1 y1 x2 y2 .... .... x250 y250 Now I need them arranged as follows: "string a" x1 y1 x1 y2 "string b" "string a" x1 y2 x2 y2 (3 Replies)
Discussion started by: Tom46
3 Replies

5. Shell Programming and Scripting

Using awk to rearrange data according to date

Hi, I have a large data frame as shown below, where data is separated into years. 10 May 2011 Created: 10 May 11 15:05 GMT Scale: SIO-2005 and others GC-MD, Cape Grim, Tasmania, Lat.: 40.68S, Lon.: 144.69E, Alt: 94m above sea level You can use the following format in Fortran to read data... (4 Replies)
Discussion started by: gd9629
4 Replies

6. Shell Programming and Scripting

how to rearrange a matrix with awk

Hi, every one. I have two files ,one is in matrix like this, one is a list with the same data as the matrix. AB AE AC AD AA AF SA 3 4 5 6 4 6 SC 5 7 2 8 4 3 SD 4 6 5 3 8 3 SE 45 ... (5 Replies)
Discussion started by: xshang
5 Replies

7. Shell Programming and Scripting

awk - count character count of fields

Hello All, I got a requirement when I was working with a file. Say the file has unloads of data from a table in the form 1|121|asda|434|thesi|2012|05|24| 1|343|unit|09|best|2012|11|5| I was put into a scenario where I need the field count in all the lines in that file. It was simply... (6 Replies)
Discussion started by: PikK45
6 Replies

8. Shell Programming and Scripting

Using awk to rearrange fields

Hi, I am required to arrange columns of a file i.e make the 15th column into the 1st column. I am doing awk 'begin {fs=ofs=","} {print $15,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14}' ad.data>ad.csv the problem is that column 15 gets to column 1 but it is not comma separated with the... (10 Replies)
Discussion started by: seddoubt
10 Replies

9. Shell Programming and Scripting

Rearrange Lines with awk

I need to rearrange the lines in the input file in the example below: Input: LG1 R500 A-170 F1:81 F1:22 F2:32 F1:71 LG1 R700 A-203 F2:17 E2:18 LG1 R700 B-224 E1:9 LG2 R500 C-235 E2:9 F2:17 Output: LG1 R500 A-170 F1:81 LG1 R500 A-170 F1:22 LG1 R500 A-170 F2:32 LG1 R500 A-170... (2 Replies)
Discussion started by: aydj
2 Replies

10. Shell Programming and Scripting

Awk: Print count for column in a file using awk

Hi, I have the following input in a file & need output as mentioned below(need counter of every occurance of field which is to be increased by 1). Input: 919143110065 919143110065 919143110052 918648846132 919143110012 918648873782 919143110152 919143110152 919143110152... (2 Replies)
Discussion started by: siramitsharma
2 Replies
opldecode(1)						      General Commands Manual						      opldecode(1)

NAME
opldecode - Decode a Raster Object (opl) stream into human readable form. SYNOPSIS
opldecode [options] <zjs-file DESCRIPTION
opldecode decodes a Raster Object (opl) stream into human readable form. A Raster Object stream is the printer langauge used by some Konica Minolta printers, such as the KM magicolor 2480 MF. COMMAND LINE OPTIONS
These are the options that can appear on the command line. -d basename Basename of .pbm file for saving decompressed planes. -h Print hex file offsets. -o Print file offsets. -D level Set Debug level [0]. EXAMPLES
Decode an Raster Object stream file created by foo2lava-wrapper -z1. $ foo2lava-wrapper -z1 testpage.ps | opldecode -h 0: Event=StartOfJob; 11: OSVersion=WindowsXP; 25: DrvVersion=2.0.1410.0; 3b: Resolution=1200x600; 4f: RasterObject.Compression=JBIG; 6d: Sides=OneSided; 7c: MediaSize=custom_size_8.5x11in; 9b: MediaType=plain; ab: MediaInputTrayCheck=top; c3: RasterObject.BitsPerPixel=1; df: RasterObject.Planes=00FFFF,0,0,0,0,0,0; 106: RasterObject.Width=9792; 11e: RasterObject.Height=6400; 137: RasterObject.Data#20= DL = 0, D = 0, P = 1, - = 0, XY = 9792 x 6400 L0 = 128, MX = 0, MY = 0 Order = 3 ILEAVE SMID Options = 92 LRLTWO TPDON TPBON DPON 50 stripes, 0 layers, 1 planes 161: RasterObject.Data#32768= 817a: RasterObject.Data#32768= 10193: RasterObject.Data#3168= 10e0b: RasterObject.Planes=FF00FF,0,0,0,0,0,0; 10e32: RasterObject.Width=9792; 10e4a: RasterObject.Height=6400; 10e63: RasterObject.Data#20= DL = 0, D = 0, P = 1, - = 0, XY = 9792 x 6400 L0 = 128, MX = 0, MY = 0 Order = 3 ILEAVE SMID Options = 92 LRLTWO TPDON TPBON DPON 50 stripes, 0 layers, 1 planes 10e8d: RasterObject.Data#32768= 18ea6: RasterObject.Data#32768= 20ebf: RasterObject.Data#19200= 259d8: RasterObject.Planes=FFFF00,0,0,0,0,0,0; 259ff: RasterObject.Width=9792; 25a17: RasterObject.Height=6400; 25a30: RasterObject.Data#20= DL = 0, D = 0, P = 1, - = 0, XY = 9792 x 6400 L0 = 128, MX = 0, MY = 0 Order = 3 ILEAVE SMID Options = 92 LRLTWO TPDON TPBON DPON 50 stripes, 0 layers, 1 planes 25a5a: RasterObject.Data#32768= 2da73: RasterObject.Data#32768= 35a8c: RasterObject.Data#32768= 3daa5: RasterObject.Data#7056= 3f64d: RasterObject.Planes=000000,0,0,0,0,0,0; 3f674: RasterObject.Width=9792; 3f68c: RasterObject.Height=6400; 3f6a5: RasterObject.Data#20= DL = 0, D = 0, P = 1, - = 0, XY = 9792 x 6400 L0 = 128, MX = 0, MY = 0 Order = 3 ILEAVE SMID Options = 92 LRLTWO TPDON TPBON DPON 50 stripes, 0 layers, 1 planes 3f6cf: RasterObject.Data#32768= 476e8: RasterObject.Data#17472= 4bb41: Event=EndOfPage; 4bb51: Event=EndOfJob; FILES
/usr/bin/opldecode SEE ALSO
foo2lava-wrapper(1), foo2opl(1) AUTHOR
Rick Richardson <rick.richardson@comcast.net> http://foo2lava.rkkda.com/
All times are GMT -4. The time now is 03:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy