Sponsored Content
Top Forums Shell Programming and Scripting how to add a new column in an existing file Post 302277942 by sam_2921 on Monday 19th of January 2009 12:09:21 AM
Old 01-19-2009
Thanks summer_cherry. Order is not an issue.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating/ammending Name Column in existing .txt file

With the help of this forum, I have a script with the following output: chr7 27104483 27105154 chr7 27106872 27110789 chr7 27111956 27112830 chr7 27114388 27125180 chr7 27126966 27131260 chr7 27135440 27137796 which was created by the following script: awk '1 == NR || $NF >= 1000 {... (6 Replies)
Discussion started by: awknerd
6 Replies

2. Solaris

Add existing user into an existing group

Pre: no gpasswd/adduser there is just usermod can be used, also there is no -a option for usermod. How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies

3. Shell Programming and Scripting

How to rewrite a existing value in a column inside a file?

I am having 4 field in a file name age date status i want to update or rewrite a value of status with another value how it can be done i used awk & sed but it shows result but not updating in original file help me out... Thanks (4 Replies)
Discussion started by: ragavendar
4 Replies

4. Shell Programming and Scripting

Adding a new column in a file with other existing columns

Hi All , Kindly help me with this soln awk '{printf "%s %7s \n", $1,$c}' infile where value of variable c I am externally giving input But executing the above command shows all the columns of infile where as I want only 1st column of infile and 2nd column should print value c (8 Replies)
Discussion started by: Pratik4891
8 Replies

5. Ubuntu

How to add a data column in existing file

Hi All I need to add a column on my existing data file. I know similar posts are there but none of them were meeting my requirement. My input is 1.20 3.44 4.88 5.11 4.99 3.22 1.89 3.89 2.90 Desired output 1 1.20 3.44 4.88 2 5.11 4.99 3.22 3 1.89 3.89 2.90 I will... (2 Replies)
Discussion started by: mahbub03
2 Replies

6. Shell Programming and Scripting

Add new column from another file in existing file

I have two files which has one column comman in them. The two files has exact same number of rows in the same sequence. I want to add the second column of Users_detail_servicesonly.txt as last column in the existing file. 1) Users_detail_complete.txt V0135 Memb Info ... (4 Replies)
Discussion started by: Sanjeev Yadav
4 Replies

7. Shell Programming and Scripting

Increment existing column in file

Hi All, I have a file with 3 millions records in which 3rd column is same throughout say its value is 0 throughout.for example: Col1 Col2 Col3 Col4 A 1 0 5 B 2 0 6 C 3 0 7 D 4 0 9 I want my output as : Col1 Col2 Col3 Col4 A 1 ... (4 Replies)
Discussion started by: Pinky456
4 Replies

8. Shell Programming and Scripting

Help with add existing file name as new data column in new output file

Input File 1 cat S1.txt MI0043 2731 miR-1 Input File 2 cat S4.txt MI006 310 CiR-1 MI057 10 CiR-24 MI750 5 CiR-24 Desired Output File 1 cat S1.txt.out MI0043 2731 miR-1 S1.txt Desired Output File 2 cat S4.txt.out MI006 310 CiR-1 S4.txt (3 Replies)
Discussion started by: perl_beginner
3 Replies

9. Shell Programming and Scripting

Matching column then append to existing File as new column

Good evening I have the below requirements, as I am not an experts in Linux/Unix and am looking for your ideas how I can do this. I have file called file1 and file2. I need to get the second column which is text1_random_alphabets and find that in file 2, if it's exists then print the 3rd... (4 Replies)
Discussion started by: mychbears
4 Replies

10. Shell Programming and Scripting

Add current time stamp column in existing csv file

Hi , I want to add a new column 'current_time stamp' in my existing csv file with current time stamp for all the records.I tried something this but this is printing 0 with date & time and printed date one line above header.Please help awk -F "," 'BEGIN{ OFS="," } {$6=system("date... (5 Replies)
Discussion started by: netdbaind
5 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 06:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy