You could extend Ravindersingh13's proposal to
- work on upper and lower case keywords, both of which are allowed in SQL
- eliminate the trailing semicolon if where clause is missing
- keep empty lines for "paragraph separation"
like
I'm currently digging for a way to append a line to a text file where each line begins with the word "setmqaut". This is a continuation of my IBM MQSeries backup script I'm working on to make my life a little easier.
What I would like to do is have each line that looks like this:
setmqaut -m... (4 Replies)
Hi, I am a newb as far as shell scripting and SED goes so bear with me on this one.
I want to basically append to each line in a file a delimiter character and the line's line number e.g
Change the file from :-
aaaaaa
bbbbbb
cccccc
to:-
aaaaaa;1
bbbbbb;2
cccccc;3
I have worked... (4 Replies)
Hello masters.
I have a rather simple problem but its been killing me. I have a file "x" with only 1 line inside it. The line looks something like
Now this is only part of the line. Its actually about 4000 characters. What i need to do is whenever there is a "}", i need to append the next... (4 Replies)
Dear All,
I have two files
One is script file in which I am writing commands to append a text in a normal file.
I want to insert the text on top of the file.
I dont want to use sed and awk commands nor temp file.
is it possible? (3 Replies)
Hi all,
I have to append every alternate line after its previous line. For example if my file has following contents
line 1: unix is an OS
line 2: it is open source
line 3: it supports shell programming
line 4: we can write shell scripts
Required output should be
line1: unix is an OS it is... (4 Replies)
I know this has been asked before but I just can't parse the syntax as explained. I have a set of files that has user information spread out over two lines that I wish to merge into one:
User1NameLast User1NameFirst User1Address
E-Mail:User1email
User2NameLast User2NameFirst User2Address... (11 Replies)
Hi Experts,
Am relatively new to shell programming so would appreciate some help in this regard.
I am looking at reading from a file, line by line, picking the first word of each line and appending it to the end of the line.
Any suggestions?
INPUT FILE -
3735051 :... (7 Replies)
Hi all,
I have text file having a number P100. what i need is when i run a script, it should add 1 to the above number and append it to the next line of a same text file.. when i use the script next time it should check the last line and add 1 to the last number and so on..
like the text... (5 Replies)
Hey all
I am trying to append a file called datebook.txt. I want to append the end of each line containing the name Fred with three ***. I believe I need to make the * loose its meta character meaning in addition to using the append command. I have tried several variations of this command and I... (3 Replies)
If I have a txt file with
test.txt
somelineoftext
and I want to set that line of text to variable in a script:
so
#!/bin/bash
var=''
becomes
#!/bin/bash
var='somelineoftext' (3 Replies)
Discussion started by: digitalviking
3 Replies
LEARN ABOUT SUSE
pfstmo_reinhard02
pfstmo_reinhard02(1) General Commands Manual pfstmo_reinhard02(1)NAME
pfstmo_reinhard02 - Photographic Tone Reproduction for Digital Images
SYNOPSIS
pfstmo_reinhard02 [--scales] [--key <val>] [--phi <val>] [--range <val>] [--lower <val>] [--upper <val>] [--temporal-coherent] [--verbose]
[--help]
DESCRIPTION
This command implements a tone mapping operator as described in:
Photographic Tone Reproduction for Digital Images. E. Reinhard, M. Stark, P. Shirley, and J. Ferwerda. In ACM Transactions on Graphics,
2002.
According to the paper, results of this TMO require gamma correction.
OPTIONS
[--scales]
Use scales to calculate local adaptation. That means: use local version of this operator. By default, global version is used.
[--key <val>]
Set key value for the image (refer to paper for details). Default value: 0.18, accepted range <0..1>.
[--phi <val>]
Set phi value (refer to paper for details). Default value: 1.0, accepted range >=0.0.
[--range <val>]
Set range size (refer to paper for details). Default value: 8, accepted range >1.
[--lower <val>]
Set lower scale size (refer to paper for details). Default value: 1, accepted range >=1.
[--upper <val>]
Set upper scale size (refer to paper for details). Default value: 43, accepted range >=1.
[--temporal-coherent], [-t]
When this option is specified, tone mapping is time coherent for video sequences. Currently the option imposes that the average and
maximum luminance value can change at most by 1% between two consecutive frames.
--verbose
Print additional information during program execution.
--help
Print list of commandline options.
EXAMPLES
pfsin memorial.hdr | pfstmo_reinhard02 -s | pfsout memorial.png
Tone map image and save it in png format.
SEE ALSO pfsgamma(1)pfsin(1)pfsout(1)pfsview(1)BUGS
Please report bugs and comments on implementation to Grzegorz Krawczyk <krawczyk@mpi-sb.mpg.de>.
pfstmo_reinhard02(1)