03-06-2008
Vino,
Thank you for your correction.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm using sed for Windows at a WinNT command prompt. Wrapping the expressions with single quotes doesn't work. I have to use double quotes. Is this the norm for the Windows implementation? (2 Replies)
Discussion started by: daddydojo
2 Replies
2. Shell Programming and Scripting
I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example,
$ ITSME=itsme
$ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME"
itsme
$ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME'
itsyou
$... (3 Replies)
Discussion started by: password636
3 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write the following command as an alias in my .bashrc file.
bjobs -u all | awk '{if (NR > 1) {username++;}}END{{print"\nJOBS BY USER:\n"} for (i in username) {print username,i;}{print"\n Total Jobs=",NR-1,"\n" }}'
The command simply puts how many jobs each user is... (2 Replies)
Discussion started by: jacekmaciek
2 Replies
4. Shell Programming and Scripting
Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes
here is the sed line
sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/"
can some one give the equivalent to the above script in single quotes
Thanks a ton (5 Replies)
Discussion started by: sol_nov
5 Replies
5. UNIX for Dummies Questions & Answers
Unix superusers,
I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Discussion started by: george_vandelet
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Unix experts,
Believe me, this forum has been really great help and I searched for many things that were already answered before open new post that were just new versions of old one, but with this one, I just can't simply move any forward.
This must be quite easy, but I cant find where I... (1 Reply)
Discussion started by: manolain
1 Replies
7. UNIX for Dummies Questions & Answers
Hi i have to insert the below line into a specific line number of another file
export MBR_CNT_PRCP_TYPE_CODES_DEL="'01','02','04','05','49','55','UNK'"
I have passed the above line to a variable say ins_line. I have used below command to perform the insert
awk 'NR==3{print "'"${ins_line}"'"}1'... (1 Reply)
Discussion started by: sathishteradata
1 Replies
8. Shell Programming and Scripting
Hi,
Trying to change the prompt. I have the following code.
export PS1='
<${USER}@`hostname -s`>$ '
The hostname is not displayed
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but... (3 Replies)
Discussion started by: bobbygsk
3 Replies
9. Shell Programming and Scripting
Hi Froum.
I have tried in vain to find a solution for this problem - I'm trying to replace any double quotes within a quoted string with a single quote, leaving everything else as is.
I have the following data:
Before:
... (32 Replies)
Discussion started by: pchang
32 Replies
10. Shell Programming and Scripting
Hi,
I have a grep command which searches if a particular word ends in a pattern
grep 'ee\>' *
The above command searches for any word that ends with ee across files and works as expected.
I need to parametrize ee and run the command
so I tried the following but none work
A=ee
grep... (1 Reply)
Discussion started by: wahi80
1 Replies
LEARN ABOUT SUSE
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)