Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
I need a commnad to modify a file's contents from:
2009-06-18 14:14:38 CST INF Thread-114 rlo.aaf_ - MASSHANDLE: Got a valid message<Location=""><bob>2</bob><carol>61</carol><ted>54</ted><alice>1m</alice>
to this :
2009-06-18 14:14:38 CST INF Thread-114 rlo.aaf_ - MASSHANDLE: Got a... (4 Replies)
We have 2 file XML files - FILE1.XML and FILE2.xml - we need copy the contents of FILE1.XML and replace in FILE2.xml pattern "<assignedAttributeList></assignedAttributeList>"
FILE1.XML
1. <itemList>
2. <item type="Manufactured">
3. <resourceCode>431048</resourceCode>
4. ... (0 Replies)
Hi,
As a newbie, I'm desperate ro make my shell script work. I'd like a script which checks all the files in a directory, check the file name, if the file name ends with "extracted", store it in a variable, if it has a suffix of ".roi" stores in another variable. I'm going to use these two... (3 Replies)
how can i call awk file "average.awk" (code as follows) with file commands like ls -s...
#!/bin/awk -f
BEGIN {
# How many lines
lines=0;
total=0;
}
{
# this code is executed once for each line
# increase the number of files
# lines++;
# increase the total size, which is field #1... (2 Replies)
hi,
I am trying to get the FileType using the File command. I have one file, which holds Group separator along with ASCII character.
It's a Text file.
But when I ran the File command the FileType is coming as "data".
It should be "ASCII, Text file".
Is the latest version of File... (6 Replies)
Hi,
file1.txt
AAA
BBB
CCC
DDD
file2.txt
abc|AAA|AAAabcbcs|fnwufnq
bca|nwruqf|AAA|fwfwwefwef
fmimwe|BBB|fnqwufw|wufbqw
wcdbi|CCC|wefnwin|wfwwf
DDD|wabvfav|wqef|fwbwqfwfe
i need the count of rows of file1.txt present in the file2.txt
required output:
AAA 2 (10 Replies)
Hi,
I am trying to attach a .log file or .txt file to mail command to send an email once my ksh script executed. I am unable to use mutt command as it has been not installed and i am not supposed to install it. I have tried many ways by googling which has not helped me to succeed.
Here is my... (5 Replies)
Hello.
The task :
Using multiple commands like :
gdisk -l $SOME_DISK >> $SOME_FILEI generate some text file.
For readiness I must insert page break.
When the program is finished I want to convert the final text file to a pdf file.
When finished, I got two files : One text file and One pdf... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
pfsgamma
pfsgamma(1) General Commands Manual pfsgamma(1)NAME
pfsgamma - Apply gamma correction to color or gray-scale images
SYNOPSIS
pfsgamma [--gamma <gamma> | --inverse-gamma <inv-gamma>] [--mul <multiplier>]
DESCRIPTION
Use this command to gamma correct a stream of pfs images. Gamma correction is equivalent to raising value of R, G and B (or Y for gray-
scale images) channels to 1/gamma power. More information on gamma correction can be found at:
http://www.poynton.com/notes/colour_and_gamma/GammaFAQ.html
This command can work on color images, in which case XYZ channels are transformed to RGB space, then they are gamma corrected before they
are converted back to XYZ. For gray-scale images (only Y channel and XZ missing) gamma correction is applied only to Y channel.
Data can be multiplied by an optional multiplier before gamma correction.
Note: gamma correction will set the 'LUMINANCE' tag to 'DISPLAY' thus cancelling any sRGB correction when saving to LDR files (like PPM,
TIFF). This will also cause a warning message when saving to HDR files, because the intensities after gamma correction are not linearly
related to luminance any more.
OPTIONS --gamma <gamma>, -g <gamma>
Perform gamma correction (input^(1/gamma)). This can be used to convert images from relative luminance or radiance to pixel values.
Default value: 1.0
--inverse-gamma <inv-gamma>, -i <inv-gamma>
Perform inverse gamma correction (input^(gamma)). This can be used to convert images from pixel values to relative radiance or lumi-
nance.
--mul <mul>, -m <mul>
Multiply data by this value before gamma correction. Default value: 1
EXAMPLES
pfsin memorial.hdr | pfsgamma -g 1.8 -m 10 | pfsout memorial_gc.ppm
Multiply memorial image by 10, gamma correct it and save to memorial_gc.ppm.
SEE ALSO pfsin(1)pfsout(1)pfsdisplayfunction(1)BUGS
Please report bugs and comments to the pfstools discussion group (http://groups.google.com/group/pfstools).
pfsgamma(1)