Hi all,
My simple AWK code does C = A - B
If C can be a negative number, how awk printf formating handles it using string format specifier.
Thanks in advance
Kanu
:confused: (9 Replies)
Hi
I'm using awk to manipulate the data in the 6th field of the file xxx_yyy.hrv.
The sample data that is available in this field is given below
220731.7100000000000000
When i tried using this command
cat xxx_yyy.hrv | awk '{printf("%23.16f\n",$6*-1)}'
I get the output as... (4 Replies)
Hey, I'm trying to read printf(3) and seems I need to use the * WIDTH
but I'm not quite sure how to go about it.
there needs to be 3 fields per line, the lines read in from file looks like this:
JUICE - APPLE:JUST JUICE:7
MILK - CHOCOLATE:BREAKA:7
this needs to be output backwards with... (6 Replies)
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Hi All,
I have created a Unix Shell script whch creates a *.csv file and export it to Excel.
The problem i am facing is that Users wants one of the AMOUNT field in comma separted values. Example :
if the Amount has the value as 3000000 User wants to be in 3,000,000 format.
This Amount format... (2 Replies)
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Hi
my awk variable $0 contains the below data
Input file
000001 The Data
000002* The line 2
000003* The line3
output file Req
000001* The Data
000002** The line 2
000003** The line3
one * at column seven needs to be appended to the input lines, (5 Replies)
Hi all,
i have written this script:
awk -F';' '
BEGIN {
printf "\n"
printf "\n"
printf "\n"
printf "----------------------------------------------\n"
print " For test "
printf "----------------------------------------------\n"
test_200 = 0
test_300 = 0
test_500 = 0
test_1000 = 0... (11 Replies)
Hello
Here is an easy one
Data file
12345 (tab) Some text (tab) 53.432
23456 (tab) Some longer text (tab) 933.422
34567 (tab) Some different text (tab) 29.309
I need to awk these three tab-delimited columns so that the first two are unchanged (unformatted) and the third shows two decimal... (1 Reply)
"Help Me" Need script for transferring bulk files from one format to text format in a unix server.
Please suggest (2 Replies)
Discussion started by: Kranthi Kumar
2 Replies
LEARN ABOUT DEBIAN
pfsintiff
pfsintiff(1) General Commands Manual pfsintiff(1)NAME
pfsintiff - Load images or frames in several variants of TIFF format (both LDR and HDR)
SYNOPSIS
pfsintiff (<file> [--linear] [--frames <range>] [--skip-missing]) [<file>...]
DESCRIPTION
pfsintiff command loads images in TIFF format and writes pfs stream to the Standard Output. The pfs stream is usually piped to another pro-
gram for further processing. To detect the format automatically based on the extension, use pfsin command.
Both the standard LDR tiff and extended HDR (logLuv encoding http://www.anyhere.com/gward/pixformat/tiffluv.html); Note that both LDR and
HDR tiff files provide photometric data (ie linearly related to luminance). The 'LUMINANCE' tag is set to 'RELATIVE', also the '--linear'
switch is ignored.
To read images from standard input use a single dash '-' instead of filename. The images are read until EOF is reached.
Each file can contain a %d pattern, which is substituted with frame numbers. The pattern has the same syntax as C printf command. For exam-
ple, you can use %04d to make the frame number four digit with proceedings zeros. You can select the frames using the following options
(the options must be always given after the file name):
--frames <range>
Range is given in mathlab / octave format:
startframe:step:endframe
Frame numbers start with startframe (default 0), are increased by step (default 1) and stop at endframe You can skip one of those
values, for example 1:100 for frames 1,2,...,100 and 0:2: for frame 0,2,4,... up to the last file that exists.
--skip-missing
Skip up to ten frames in a row if corresponding files are missing. Otherwise the program stops reading sequence at the first file
that does not exists. This switch does not apply to the first frame in a sequence. This switch can be useful if there is a rendered
animation where some of the frame has not been generated.
--linear
Ignored for compatibility with pfsinppm.
EXAMPLES
pfsintiff frame%04d.tif --frames 0:10 | pfsview
Read frames from files frame0000.tif, frame0001.tif, ..., frame0010.tif and show them using pfsview.
BUGS
Please report bugs and comments on implementation to the discussion group http://groups.google.com/group/pfstools
SEE ALSO pfsin(1), pfsout(1)pfsintiff(1)