03-13-2010
If you provide an example of your dataset, somebody on the forum will probably be able to help you. Without seeing an example of your dataset it is difficult to provide a useful answer other than telling you to read the sort man page.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Write a shell program that takes one or any number of file names as input; sorts the lines of each file in ascending order and displays the non blank lines of each sorted file and merge them as one combined sorted file. The program should generate an error message in case any input file does not... (1 Reply)
Discussion started by: kumar_saurabh
1 Replies
2. UNIX for Advanced & Expert Users
Hi All,
Can anyone tell me how to sort data in a file using the “sort” command? Note that the records in the data file are not separated into fields. I know only the column positions of the data on which sorting should be done. For example say I've to sort based on the data present in between... (1 Reply)
Discussion started by: swat
1 Replies
3. Shell Programming and Scripting
Hi all
i am facing a problem in sorting command. The script depending on the sorting command works fine only if ascii sorting is done.
i need to know how to find out how to perform ascii sorting. sorting is case insensitive in
my file has data in the following format.
AA/BB/
AAA/BB\
also... (1 Reply)
Discussion started by: sais
1 Replies
4. UNIX Desktop Questions & Answers
Hi All,
I am new to unix,please help me on the following its urgent
I have 2 question
1 question
I need a script for following senario
I have get some files in directory by using grep
i need to sort all files to new files for example (abc.dat --> abc.dat.sort)
ex:grep *050508* ... (3 Replies)
Discussion started by: cgreddy2020
3 Replies
5. Shell Programming and Scripting
Hi experts,
i have a file.If i will delete some intermediate records from the file then the output file will be in sorted format as show below.
file A
====
D001 ty gh
D002 fg hi
D003 jk lr
.
.
.
if i will delete the 2nd record then the output file is as follows:
outputfile:... (1 Reply)
Discussion started by: subhendu81
1 Replies
6. UNIX and Linux Applications
Hi,
Please help me to solve sorting in CSV file.
I have 25 columns in my CSV. (Delimiter is ",")
Summary columns are from 10 to 13 which are should not be sorted. From 1-9 and 14-25 should be able to sort in ascending. how should i do this using Sort command in unix.
If no simple commands pls... (0 Replies)
Discussion started by: rajani_p
0 Replies
7. UNIX for Dummies Questions & Answers
Hi I'm writing a shell that goes through a bunch of files and does a simple test on each. Each file has a numeric name (ex. 100.jpg). My problem is that the shell is going through the files in alphabetical rather than numeric order.
Thus, after checking file 19.jpg it skips to 100.jpg. Once... (7 Replies)
Discussion started by: Bengel
7 Replies
8. Shell Programming and Scripting
Hi I need how to sort string characters
for Example i have a file that contains this data
example string "fan" but i want to display "afn" contained words
"afn" is in sorted format for fan.
File data
faty
gafny
gaifny
dafan
gafnniunt
O/p
gafny
gafnniunt (3 Replies)
Discussion started by: polineni
3 Replies
9. Shell Programming and Scripting
hi experts,
I have a flat file with 2 fields, 1st field is alpha-numeric and 2nd is numeric.
Input file is ::
A_0 11
A_0 12
A_0 13
C_0 3
B_1 21
B_1 22
A_0 1
A_0 2
I want to sort this file, first based on 1st field, then on 2nd field
Output should be ::
A_0 1
A_0 2
A_0 11... (1 Reply)
Discussion started by: sandeepkmehra
1 Replies
10. Shell Programming and Scripting
Hi ,
I have following error files in /srv/trillium/Projects/SAS_AML/logs dir.
srtforpm_p3.err
tranfrmr_p1.err
tranfrmr_p9.err
winkey_p5.err
tranfrmr_p10.err
srtforrl_p15.err
tranfrmr_p6.err
srtforrl_p7.err
tranfrmr_p8.err
tranfrmr_p14.err
tranfrmr_p13.err
tranfrmr_p12.err... (3 Replies)
Discussion started by: sonu_pal
3 Replies
LEARN ABOUT DEBIAN
h5totxt
H5TOTXT(1) h5utils H5TOTXT(1)
NAME
h5totxt - generate comma-delimited text from 2d slices of HDF5 files
SYNOPSIS
h5totxt [OPTION]... [HDF5FILE]...
DESCRIPTION
h5totxt is a utility to generate comma-delimited text (and similar formats) from one-, two-, or more-dimensional slices of numeric datasets
in HDF5 files. This way, the data can easily be imported into spreadsheets and similar programs for analysis and visualization.
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, h5totxt takes the first dataset, but
this can be changed via the -d option, or by using the syntax HDF5FILE:DATASET.
By default, the entire dataset is dumped to the output. in row-major order. For 3d datasets, this corresponds to a sequence of yz slices,
in order of increasing x, separated by blank lines. If -T is specified, outputs in the transposed (column-major) order instead
Often, however, you want only a one- or two-dimensional slice of multi-dimensional data. To do this, you specify coordinates in one or
more slice dimensions, via the -xyzt options.
The most basic usage is something like 'h5totxt foo.h5', which will output comma-delimited text to stdout from the data in foo.h5.
OPTIONS
-h Display help on the command-line options and usage.
-V Print the version number and copyright info for h5totxt.
-v Verbose output.
-o file
Send text output to file rather than to stdout (the default).
-s sep Use the string sep to separate columns of the output rather than a comma (the default).
-x ix, -y iy, -z iz, -t it
This tells h5totxt to use a particular slice of a multi-dimensional dataset. e.g. -x causes a yz plane (of a 3d dataset) to be
used, at an x index of ix (where the indices run from zero to one less than the maximum index in that direction). Here, x/y/z cor-
respond to the first/second/third dimensions of the HDF5 dataset. The -t option specifies a slice in the last dimension, whichever
that might be. See also the -0 option to shift the origin of the x/y/z slice coordinates to the dataset center.
-0 Shift the origin of the x/y/z slice coordinates to the dataset center, so that e.g. -0 -x 0 (or more compactly -0x0) returns the
central x plane of the dataset instead of the edge x plane. (-t coordinates are not affected.)
-T Transpose the data (interchange the dimension ordering). By default, no transposition is done.
-. numdigits
Output numdigits digits after the decimal point (defaults to 16).
-d name
Use dataset name from the input files; otherwise, the first dataset from each file is used. Alternatively, use the syntax
HDF5FILE:DATASET, which allows you to specify a different dataset for each file. You can use the h5ls command (included with hdf5)
to find the names of datasets within a file.
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 H5TOTXT(1)