11-03-2006
Can this be done in perl? I've some exposure to Perl, any pointers....
-Nitin
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello All,
I have a file of the format
****
123 abc ABC
456 bcd BCD
789 def
112 ghi GHI
223 jkl
344 mno MNO
****
I am trying to extract the lines that have no values in the third field (in this case, this would be
789 def
223 jkl
Can anyone please help??... (1 Reply)
Discussion started by: Khoomfire
1 Replies
2. Shell Programming and Scripting
hello all,
In many shell scripts i found '> /dev/null' , i am not able to get this,
will any one please explain why we are using this.
thanks
sudha (2 Replies)
Discussion started by: rrs
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
I have a input file with many fields and each filed will be with in double quotes(""). i want to check fields contains balnk,null or space using condition using if. when i write code as below for if condition its not working
a=`awk -F ',' '{gsub("\"", "", $1);'NF==0';printf $1}'... (3 Replies)
Discussion started by: jayakumarrt
3 Replies
4. Shell Programming and Scripting
Hi expert,
May I know what is the difference between below cron tab entry ?
0,12 * * * * /abc/myscript.sh > /dev/null 2>&1
0,12 * * * * /abc/myscript.sh (7 Replies)
Discussion started by: olaris
7 Replies
5. Shell Programming and Scripting
when do you use the path /dev/null (3 Replies)
Discussion started by: webmunkey23
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
Can someone help me comparing Null values.
Scenario is as follows:
I have a variable which "cache_prd" which can have either some integer or nothing(Null)
if it is integer I have to again do some comparision but these comparisons give me this error:( "line 32: [: 95: unary operator... (3 Replies)
Discussion started by: Yagami
3 Replies
7. Shell Programming and Scripting
I have an input file having 7 fields delimited by ,
eg :
1,ABC,hg,1,2,34,3
2,hj,YU,2,3,4,
3,JU,kl,4,5,7,
4,JK,KJ,3,56,4,5
The seventh field here in some lines is empty, whereas the other lines there is a value.
How do I insert string NULL at this location (7th loc) for these lines where... (8 Replies)
Discussion started by: zilch
8 Replies
8. UNIX for Dummies Questions & Answers
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&"
echo "hello" > /dev/null 2>&1
echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies
9. Shell Programming and Scripting
Hi Champs!!!
im a newbie in unix, need ur expert help for my problem...
I need to search if there are any "NULL" entries in the string
String without Null
Str1: 203652|1000003653|tellt|RUPV|4649|1|07/28/2011 01:56:12
String with Null (RUPV is removed)
Str2:... (5 Replies)
Discussion started by: guruprasad7
5 Replies
10. Shell Programming and Scripting
I apologize if this question has been answered else where or is too elementary.
I ran across a KSH script (long unimportant story) that does this:
if ; then
CAS_SRC_LOG="/var/log/cas_src.log 2>&1"
else
CAS_SRC_LOG="/dev/null 2>&1"
fithen does this:
/usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies
LEARN ABOUT HPUX
ran2tiff
RAN2TIFF(1) General Commands Manual RAN2TIFF(1)
NAME
ran2tiff - expose and convert a RADIANCE animation to TIFF frames
SYNOPSIS
ran2tiff [ -W prev_frame_wt ][ -H histo ][ -D dir ] [ pcond opts ] [ ra_tiff opts ] frame1.hdr frame2.hdr ..
DESCRIPTION
Ran2tiff takes an animated sequence of Radiance pictures and converts them by calling pcond(1) and ra_tiff(1) in such a way that exposure
changes gradually from one frame to the next. It accomplishes this by computing a histogram for each image and blending it with a weighted
histogram from the previous frame, where the weight is set by the -W option, or 0.9 by default. A value of 0.5 would mean that the previ-
ous frame carries 1/2 the weight of the current one, and the frame before that 1/4, 1/8 before that, and so on.
The -H option specifies a histogram file to be used to ensure continuous exposure between the current sequence and one before it. If the
file does not exist, it will be created at the end of the conversion. If it does exist, its contents will be used as the histogram at the
end of the previous sequence.
The -D option may be used to specify an output directory for the resulting TIFF frames. Otherwise, the current directory will be used.
The output file names will correspond to the input names, but with a ".tif" suffix.
Ran2tiff also accepts the standard options for pcond and ra_tiff, though output to LogLuv TIFF formats is not supported. (There would be
no point in adjusting the exposure if the output were HDR.)
EXAMPLE
To convert a sequence of frames using a rapid human exposure response and LZW compression on the output:
ran2tiff -W 0.7 -h -z frame*.hdr
Similar to fieldcomb(1), this program works well with the "TRANSFER" facility of ranimate(1).
AUTHOR
Greg Ward
SEE ALSO
fieldcomb(1), getinfo(1), pcond(1), pfilt(1), phisto(1), ra_tiff(1), ranimate(1), rpict(1)
RADIANCE
9/16/2005 RAN2TIFF(1)