Dear All,
Good day. Here i am facing some problem like below.
file contains
12345 0001 090112
14385 0001 090112
13255 0001 090112
11345 0001 090112
....
I want to sort ascending according to the first column. What will be the shell script. (4 Replies)
I have a column of numbers in the following format:
1.722e-05
2.018e-05
2.548e-05
2.747e-05
7.897e-05
4.016e-05
4.613e-05
4.613e-05
5.151e-05
5.151e-05
5.151e-05
6.1e-05
6.254e-05
7.04e-05
7.12e-05
7.12e-05 (6 Replies)
Hello,
I have two files as the following:
File1:
F0100020 A G
F0100030 A T
F0100040 A G
File2:
F0100040 A G BTA-28763-no-rs 77.2692
F0100030 A T BTA-29334-no-rs 11.4989
F0100020 A G BTA-29515-no-rs 127.006
I want to sort the second file based on the... (6 Replies)
My scenario is that I need to pick value from third column based on fourth column value, if fourth column value is 1 then first value of third column.Third column (2|3|4|6|1) values are cancatenated.
Main imp point, in my .csv file, third column is having price value with comma (1,20,300), it has... (2 Replies)
Hi Guru,
I need some help regarding awking the output so it only show the first line (based on column) of each row.
So If column has 1, three row, then it only show the first line of that row, based on similar character in column 1. So i am trying to achieve a sort, based on column one and... (3 Replies)
Hi,
i need to sort content of files based on a specific value. An example as below.
Input1.txt
Col_1
SW_MH2_ST
ST_F72_9S
SW_MH3_S6
Col_2
SW_MH3_AS7
ST_S15_9CH
SW_MH3_AS8
SW_MH3_ST
Col_3
ST_M93_SZ
ST_C16_TC (12 Replies)
Hello everyone,
I am using ksh on Solaris 10 and I'm gathering data in a CSV file that looks like this:
20170628-23:25:01,1,0,0,1,1,1,1,55,55,1
20170628-23:30:01,1,0,0,1,1,1,1,56,56,1
20170628-23:35:00,1,0,0,1,1,2,1,57,57,2
20170628-23:40:00,1,0,0,1,1,1,1,58,58,2... (6 Replies)
Hi All ,
I am having an input file like this
Input file
7 sks/jsjssj/ddjd/hjdjd/hdhd/Q 10 0.5 13
dkdkd/djdjd/djdjd/djd/QB 01 0.5
ldld/dkd/jdf/fjfjf/fjf/Q 0.5
10 sjs/jsdd/djdkd/dhd/Q 01 0.5 21
kdkd/djdd/djdd/jdd/djd/QB 01 0.5
dkdld/djdjd/djd/Q 01 0.5
... (9 Replies)
Discussion started by: kshitij
9 Replies
LEARN ABOUT ULTRIX
compact
compact(1) General Commands Manual compact(1)Name
compact, uncompact, ccat - compress and uncompress files, and cat them
Syntax
compact [name...]
uncompact [name...]
ccat [file...]
Description
The command compresses the named files using an adaptive Huffman code. If no file names are given, the standard input is compacted to the
standard output. The command operates as an on-line algorithm. Each time a byte is read, it is encoded immediately according to the cur-
rent prefix code. This code is an optimal Huffman code for the set of frequencies seen so far. It is unnecessary to prepend a decoding
tree to the compressed file since the encoder and the decoder start in the same state and stay synchronized. Furthermore, and can operate
as filters. In particular,
... | compact | uncompact | ...
operates as a (very slow) no-op.
When an argument file is given, it is compacted and the resulting file is placed in file.C; file is unlinked. The first two bytes of the
compacted file code the fact that the file is compacted. This code is used to prohibit recompaction.
The amount of compression to be expected depends on the type of file being compressed. Typical values of compression are: Text (38%), Pas-
cal Source (43%), C Source (36%) and Binary (19%). These values are the percentages of file bytes reduced.
The command restores the original file from a file compressed by If no file names are given, the standard input is uncompacted to the stan-
dard output.
The command cats the original file from a file compressed by without uncompressing the file.
The command is present only for compatibility. In general, the command runs faster and gives better compression.
Restrictions
The last segment of the file name must contain fewer than thirteen characters to allow space for the appended '.C'.
Files
compacted file created by compact, removed by uncompact
See Alsocompress(1)compact(1)