Hi,
I try to write script to compare 2 data file (list of numbers) which after that I want to delete unmatched numbers and create new file for matched numbers.
Can anybody to help me? (5 Replies)
I am trying to write a script and failing miserably. I have a file that looks something like this;
20050924-155819;Backoffice;1037;0;DDT-TCP/IP;;0;Node
20050924-155902;Unknown;1036;0;DDT-TCP/IP;;0;Node
20050924-155922;FrontOffice;1040;5;DDT-
The desired result is one file containing only... (4 Replies)
Now that I have a file that looks something like this;
20050926 Unknown
20050926 MUREXFO
20050926 MUREXFO
20050926 MUREXFO
20050926 Unknown
20050926 KADDUSS
20050926 KADDUSS
20050926 KADDUSS
20050926 MUREXFO
Is there a way in vi that I can search the file and remove any line... (2 Replies)
Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq -d
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem. (3 Replies)
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Hi,
I have a requirement like this
Line 1
Line 2
Line 3 Manager
Line 4
Line 5
I have to print like this
Have you done your work on time because I have to forward the work forward.
Any Help is really Appriciated.... (1 Reply)
Hello,
I have file of more than 10000 lines.
I want to delete 40 lines after every 20 lines.
e.g from a huge file, i want to delete line no from 34 - 74, then 94 - 134 etc and so on.
Please let me know how i can do it.
Best regards, (11 Replies)
Hi,
I need help to split any lines that contain ; or ,
input.txtAc020 Not a good chemical process
AC030 many has failed, 3 still maintained
AC040 Putative; epithelial cells
AC050 Predicted binding activity
AC060 rodC Putative; upregulated in 48;h biofilm vs planktonic
The output... (8 Replies)
HI,
I have 2 text files. file1 and file2.
file1.txt (There are no duplicates in this file)
1234
3232
4343
3435
6564
6767
1213
file2.txt
1234,wq,wewe,qwqw
1234,as,dfdf,dfdf
4343,asas,sdds,dsds
6767,asas,fdfd,fdffd
I need to search each number in file1.txt in file2.txt's 1st... (6 Replies)
Discussion started by: Little
6 Replies
LEARN ABOUT CENTOS
pfm
PFM Format Description(5) File Formats Manual PFM Format Description(5)NAME
PFM - PFM graphic image file format
DESCRIPTION
This document describes the PFM graphic image file format as understood by the Netpbm converters pamtopfm(1)
and pfmtopam(1)
There are multiple similar formats known as PFM in the world, none of them authoritatively documented. The format described here is one
that Bryan Henderson deduced from a program he found somewhere that dealt with a 'PFM' format.
The PFM format is inspired by the Netpbm formats, and you will see lots of similarity. It is not, however, an official Netpbm format. Its
goal is not consistent with those of Netpbm formats.
The format
A PFM image is a stream of bytes. The stream consists of a header followed immediately by a raster. These two components are described
below. There are no delimeters before or after the sections as described.
PFM header
The PFM header is 3 consecutive 'lines' of ASCII text. After each line is a white space character. That character is typically a newline
character, hence the term 'line,' but doesn't have to be.
pamtopfm uses a newline in the PFM it generates.
Identifier Line
The identifier line contains the characters 'PF' or 'Pf'. PF means it's a color PFM. Pf means it's a grayscale PFM.
Dimensions Line
The dimensions line contains two positive decimal integers, separated by a blank. The first is the width of the image; the second is the
height. Both are in pixels.
Scale Factor / Endianness
The Scale Factor / Endianness line is a queer line that jams endianness information into an otherwise sane description of a scale. The
line consists of a nonzero decimal number, not necessarily an integer. If the number is negative, that means the PFM raster is little
endian. Otherwise, it is big endian. The absolute value of the number is the scale factor for the image.
The scale factor tells the units of the samples in the raster. You use somehow it along with some separately understood unit information
to turn a sample value into something meaningful, such as watts per square meter.
PFM raster
The raster is a sequence of pixels, packed one after another, with no delimiters of any kind. They are grouped by row, with the pixels in
each row ordered left to right and the rows ordered bottom to top.
Each pixel consists of 1 or 3 samples, packed one after another, with no delimiters of any kind. 1 sample for a grayscale PFM and 3 for a
color PFM (see the Identifier Line of the PFM header).
Each sample consists of 4 consecutive bytes. The bytes represent a 32 bit string, in either big endian or little endian format, as deter-
mined by the Scale Factor / Endianness line of the PFM header. That string is an IEEE 32 bit floating point number code. Since that's the
same format that most CPUs and compiler use, you can usually just make a program use the bytes directly as a floating point number, after
taking care of the endianness variation.
netpbm documentation 19 April 2012 PFM Format Description(5)