thanks RudiC, this works very well. If you don't mind I would like to ask another simple question.
now I need to set a condition, after I run the program it produces an output file. Somewhere in this output
there is a line that looks like
in my shell script I need to read this line and if that number is in certain interval continue to do further calculations, if not skip to next iteration. So how can I write this if .. else statement?
I know we can substitute a string using sed but how?
For example: sed 's/(old variable)/(new variable)/ details.dat
Am I suppose to put $old variable or whatever? Because I tried many times, it didnt work by putting $old variable. Am I suppose to enclose it with "" or ''?
Please help (3 Replies)
Hi,
I have a set of files containing strings like I.TEST1_TEST2 or B.ESSA_ESSB for example.
Does somebody know how to substitute these strings whith the same name and an extension "_V1" (ie. I.TEST1_TEST2_V1) using sed command or else ? (3 Replies)
Hi ,
I am stuck up in the below scenario:-
I need to read a file name (eg A.txt) name frm another file (eg B.txt) and then I need to search for a particular expression in A.txt and substitute it with another expression.
How can I use SED inside SHELL Scripting and command prompt as... (2 Replies)
Hi ,
I am stuck up in the below scenario:-
I need to read a file name (eg A.txt) name frm another file (eg B.txt) and then I need to search for a particular expression in A.txt and substitute it with another expression.
How can I use SED inside SHELL Scripting and command prompt as well to... (1 Reply)
Hi guys,
Can u please help me to replace (-) with (/) in a file containing no of records using "sed " command in unix.
thanks in advance.
subhendu (5 Replies)
Hi I am trying to do a text insertion in a text file at a particular line number in a shell script. However its not working.
sed '122i\
> for j in \`echo $MyList\` ; do perl -pi -e\'s#01\/01\/2009#01\/01\/2011#\' $j ; done' $HOME/MyScript.ksh
The Actual line to be inserted at line 122... (5 Replies)
I'm a noob to unix, and I have a line of data like the following:
title=Boston|tcolor=green|desc=Large city in New England|url=www.boston.com
Is there a way to change a field value with sed substitution?
(i.e. change tcolor=green to tcolor=blue)
I figured out: sed... (19 Replies)
I have a file with some numbers having single quotes around them which I want to remove.
i.e. '923930' -> 23930
If it can be done without using sed thats fine. I have tried with sed but can't think how to replace this pattern on only the numbers (13 Replies)
Hello,
I have two files. File1 is normal txt file and File2 contains list of line numbers.
e.g. File2:
3
6
9
.....
I need to replace a character in File1 in lines (taken from File2). For that I am using a "for" loop:
for i in $(cat File2)
do
sed "$i s/Y/N/" File1
done
but my... (3 Replies)
How can you use sed with a line of code that reads:
67899:Bill:Williams:Maple Dr.:45908600
Let us say we want to replace Maple Dr. with Oak St. (1 Reply)
Discussion started by: yonkers062986
1 Replies
LEARN ABOUT DEBIAN
hugin_hdrmerge
HUGIN_HDRMERGE(1) HUGIN HUGIN_HDRMERGE(1)NAME
hugin_hdrmerge - Merge overlapping images
SYNOPSIS
hugin_hdrmerge [options] -o output.exr input-files
DESCRIPTION
TODO.
OPTIONS -o prefix
Output file
-m mode
Merge mode, can be one of: avg, avg_slow, khan (default), if avg, no -i, -s, or -d options apply
-i iter
Number of iterations to execute (default is 1)
-c Only consider pixels that are defined in all images (avg mode only)
-s file
Debug files to save each iteration, can be one of:
a - all debug files (can only be used alone)
w - calculated weights from each iteration
r - result image from each iteration
s - source images before processing
If verbose >= 3, all debug files are output unless specified
-a calcs
Apply one or more advanced calculations, can be one or more of:
b - biasing weights logarithmically
c - choose pixels with highest weight instead of averaging (overrides options -a b and -a d)
d - choose a pixel with the highest weight instead of averaging when all pixel weights are within 10% of each other
h - favour a high signal to noise ratio
i - ignore alpha channel
-e Export each initial weight to <input_file_paths>_iw.<ext>
-l Load a previously exported initial weight with respect to the input file names
NOTE: if both -e and -l options are on, the program will calculate and save the initial weights, then wait until user indicates that it
can continue by loading the previously saved weights
-v Verbose, print progress messages, repeat for even more verbose output
-h Display help summary.
AUTHORS
Written by Jing Jin. Also contains contributions from Pablo d'Angelo, Douglas Wilkins, Ippei Ukai, Ed Halley, Bruno Postle, Gerry Patterson
and Brent Townshend.
This man page was written by Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> and is licensed under the same terms as the hugin package
itself.
"Version: 2011.4.0" 2011-12-02 HUGIN_HDRMERGE(1)