#!/bin/ksh
VAR_ONE=HELLO
TEMP=ONE
echo $VAR_${TEMP}
## Output is: ONE
Hi, I want the output to echo HELLO and not ONE as the above script does. I know I am missing something with dollar substitution. Can anyone help me out ?
Thanks.
Cal (4 Replies)
Hi,
What is the actual difference between these two? Why the following code works for process substitution and fails for command substitution?
while IFS= read -r line; do echo $line; done < <(cat file)executes successfully and display the contents of the file
But,
while IFS='\n' read -r... (3 Replies)
All,
I have this text document that contains a listing(See below).
What i would like to ask is how i could extract just the information i need which is the files name (CWS*****.***.gz)
If anyone has any suggestions i would be very grateful. I am sure its relatively simple but i just... (6 Replies)
Hello, I'm trying to do a substitution in vi. which adds a field for the year to a line.
If the line doesnt include a year, it should still add a field (although empty)
the fields are:
Country:number:number:name(and sometimes year):place
this is a desired in and output:
Sweden:55:32:John... (2 Replies)
Hello everyone ...
I'm going crazy, I hope some of you can help me ...
I have to replace a line in a crontab like this:
5 2 * * 2 root backupdat
with this:
5 5 * * 3 root backupdat
the command I use is the following:
sed -i.bak -e 's/5 2 * * 2 root backupdat/5 5 * * 3 root... (4 Replies)
Hi all
Having issue with substitution using sed
Trying to assign the absolute path of the file to the variable 'floc' returned by the find command
floc=`find / -name $fname`
eg cat $floc '/root/samplecheck/myfile'
I want to replace '/' with '->' in the 'floc' i am using the below sed... (2 Replies)
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Hi,
I'm trying to reformat some badly formatted XML that I've extracted from Oracle clob columns using the following nawk command:
nawk '{gsub(/</,/>\n/); print}' test.raw > test.xml
the substitution executes fine, but instead of subbing < with > followed by newline, it subs the < with a... (3 Replies)
I am trying to do some substitutions using the substitution operator (:%s) in a text file.
I want to replace all A1, A2, A3.......A100 in my text file.
I used :%s/A2/SAE/g successfully until A9 but when I use A1, all the A11 to A19 is changed. How do I specify the exact match here? (8 Replies)
Discussion started by: Kanja
8 Replies
LEARN ABOUT DEBIAN
exrpptm
exrpptm(1) General Commands Manual exrpptm(1)NAME
exrpptm - performs tone mapping on an OpenEXR image (photoreceptor)
SYNOPSIS
exrpptm [options] input.exr output.exr
DESCRIPTION
Performs the tone mapping function described in this paper:
Erik Reinhard and Kate Devlin. Dynamic Range Reduction Inspired by Photoreceptor Physiology. IEEE Transactions on Visualization and Com-
puter Graphics (2004).
The input image should be normalized, and the output file returned by this function should also be normalized before viewing.
OPTIONS -f Controls the intensity of the resulting image. Valid range is from -8 to 8, defaulting to 0.
-m Controls the contrast of the resulting image. Valid range is from 0.3 to 1.0. The default value of 0 uses an algorithm to calcu-
late an appropriate m factor for the image based on its luminance.
-c Amount of chromatic adaptation to apply to the image. Valid range is from 0 meaning no chromatic adaptation to 1 meaning fully
adapted. Defaults to 0.
-a Controls the light adaptation. Valid range is from 0 meaning that the adaptation is global to 1 meaning that the adaptation is
based on pixel intensity. Defaults to 1, to trade detail visibility for contrast.
AUTHORS
Billy Biggs <vektor@dumbterm.net>.
SEE ALSO exrtools(1).
exrtools 0.4 December 2003 exrpptm(1)