12-23-2005
how to insert new coloum
Dear friends,
I have a dataset like this
2.18 66.86 27.9
2.18 66.86 27.9
2.18 66.86 27.9
2.15 66.88 27.9
2.15 66.88 27.9
Now i have another dataset containing date coloum like this
22-12-2005
22-12-2005
22-12-2005
22-12-2005
22-12-2005
Now i want to insert this data coloum in first dataset as a third coloum
so my final data set should like this
2.18 66.86 22-12-2005 27.9
2.18 66.86 22-12-2005 27.9
2.15 66.88 22-12-2005 27.9
2.15 66.88 22-12-2005 27.9
how to get his awk will work
please help
regards
rajan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
am new to unix can any one help me to insert data to afile to a specified
column.
ie to an output file with csv format i should insert some data to 2,3,4 fileds and the data in those fields should move to next fields
eg:
output file
asd,12,12,12,12,1,2,1,1,1,1,1... (10 Replies)
Discussion started by: babu@shell
10 Replies
2. UNIX for Dummies Questions & Answers
I'm directing output to a *.dat file. The first byte is a variable, the second must be a carriage-return (x'0D'). Is there a UNIX equivalent of an ASCII command that will allow me to output this byte? (2 Replies)
Discussion started by: rchuttke
2 Replies
3. Shell Programming and Scripting
I have a file like the format
000002371627240000023716272455577818030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001099001099425%00109925%IPY 2007013120070227Y99991231N YYX SRT0001010125%0000503318882HANDH800 R... (3 Replies)
Discussion started by: vaskarbasak
3 Replies
4. Shell Programming and Scripting
Hi,
i am new to perl scripting.. i am still learing it.. i am asked to write a perl script which should compare 2 coloums of 2 different files. if those 2 coloumn are same the script should store the both the lines in 2 diff files.
these are files,
file 1:
21767016 226112 char
19136520... (3 Replies)
Discussion started by: vasuki
3 Replies
5. Shell Programming and Scripting
Hi i have a file and i want to add the coloum values
like
9067 is coming twice here so o/p willbe like
9067,sum of 3rd coloum,sum of 4th coloum
9015 is coming 0nce then o/p
9015,15,6
sum is happening based on first coloum it will add all the third coloum and 4th coloum value where first... (1 Reply)
Discussion started by: aaysa123
1 Replies
6. Shell Programming and Scripting
Can anyone help.
I have sql to CSV showing header with ALIAS names but I want to generate CSV file with user friendly name i.e from AIAN8 to Adress Book Number etc.
SELECT AIAN8 || , || F0101.ABALPH || , || AICO ||
showing following below in CSV output intead of above
Address... (4 Replies)
Discussion started by: s1a2m3
4 Replies
7. Shell Programming and Scripting
Hi,
I've written a script to interrogate all fibre devices on our systems and output the WWNs to a file. I now want to insert a ":" every 2 characters into the WWN so I can write another script to create aliases within the SAN.
So the current file has WWNs in the following format;... (2 Replies)
Discussion started by: h8mmer
2 Replies
8. Shell Programming and Scripting
Hi All
I got one problem and want your help,what i want to do is
Input
123 key0=A;B;C;:key1=X;Y;Z;:
here 123 is a username
I should search the username (in this case it is 123) in file and if found it should insert the additional string D as below
Here 123 and key are tab seperated
... (6 Replies)
Discussion started by: parthmittal2007
6 Replies
9. Linux
How can I insert End of line (EOL) in Unix to file. Thanks (5 Replies)
Discussion started by: mrn6430
5 Replies
10. UNIX for Dummies Questions & Answers
Hello
Is there any sed command to insert a line after nth line... have a file of 500000 lines
Thanks (4 Replies)
Discussion started by: Madiouma Ndiaye
4 Replies
LEARN ABOUT DEBIAN
h5fromtxt
H5FROMTXT(1) h5utils H5FROMTXT(1)
NAME
h5fromtxt - convert text input to an HDF5 file
SYNOPSIS
h5fromtxt [OPTION]... [HDF5FILE]
DESCRIPTION
h5fromtxt takes a series of numbers from standard input and outputs a multi-dimensional numeric dataset in an HDF5 file.
HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the Uni-
versity of Illinois in Urbana-Champaign. A single h5 file can contain multiple data sets; by default, h5fromtxt creates a dataset called
"data", but this can be changed via the -d option, or by using the syntax HDF5FILE:DATASET. The -a option can be used to append new
datasets to an existing HDF5 file.
All characters besides the numbers (and associated decimal points, etcetera) in the input are ignored. By default, the data is assumed to
be a two-dimensional MxN dataset where M is the number of rows (delimited by newlines) and N is the number of columns. In this case, it is
an error for the number of columns to vary between rows. If M or N is 1 then the data is written as a one-dimensional dataset.
Alternatively, you can specify the dimensions of the data explicitly via the -n size option, where size is e.g. "2x2x2". In this case,
newlines are ignored and the data is taken as an array of the given size stored in row-major ("C") order (where the last index varies most
quickly as you step through the data). e.g. a 2x2x2 array would be have the elements listed in the order: (0,0,0), (0,0,1), (0,1,0),
(0,1,1), (1,0,0), (1,0,1), (1,1,0), (1,1,1).
A simple example is:
h5fromtxt foo.h5 <<EOF
1 2 3 4
5 6 7 8
EOF
which reads in a 2x4 space-delimited array from standard input.
OPTIONS
-h Display help on the command-line options and usage.
-V Print the version number and copyright info for h5fromtxt.
-v Verbose output.
-a If the HDF5 output file already exists, append the data as a new dataset rather than overwriting the file (the default behavior).
An existing dataset of the same name within the file is overwritten, however.
-n size
Instead of trying to infer the dimensions of the array from the rows and columns of the input, treat the data as a sequence of num-
bers in row-major order forming an array of dimensions size. size is of the form MxNxLx... (with M, N, L being numbers) and may be
of any dimensionality.
-T Transpose the input when it is written, reversing the dimensions.
-d name
Write to dataset name in the output; otherwise, the output dataset is called "data" by default. Alternatively, use the syntax
HDF5FILE:DATASET.
BUGS
Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
AUTHORS
Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts Institute of Technology.
h5utils March 9, 2002 H5FROMTXT(1)