Hello,
Can you explain why in the first 2 commands the awk does not print anything? Is it looking of a specific format ?
Thanks.
$ echo 12a3 | awk '($1>=2) {print $1}' # prints nothing
$ echo 123a | awk '($1>=2) {print $1}' # prints nothing
$ echo a123 | awk '($1>=2) {print $1}'
a123... (1 Reply)
Dear Group,
I want to prepare an ELF file which can be downloaded dynamically to any address in the moemory and executes as a new task/thread/process.
1) for this what are all the compileation, linker options while building the ELF file?
2) which parts of ELF file has to modified while... (1 Reply)
how can i specify more than 1 consition in the following AWK statament??
i.e. if $2 is ABCD and $3 is MNOP and $4 is KLPM
similarly for OR
#!/bin/ksh
awk -F '' ' $2 == "ABCD" { print $2, $3;}' file.xml (2 Replies)
Hi Everyone,
# cat 1
1;2;3;4;5;6
1;2;3;4;5;
# awk -F ";" '$5 == "5"' 1
1;2;3;4;5;6
1;2;3;4;5;
but the output is should be just "1;2;3;4;5;6" means 1st condition: $5 is 5; 2nd condition: $6 is not empty, please advice. Thanks (2 Replies)
Hi there, here is my command
ssh host.local "/path/to/my/perscript/hostconfig.pl -s $HOST -d |awk '{if (\$4 > 120)print \"My error message\";exit}{s=0; for (i=1; i<=NF; i++) s++; if(s == 13) print \$3}'"
The problem is if conditional 1 is met (i.e $4 > 120), i don't see "My error message", the... (5 Replies)
Hi All,
I have a file with below contents.
"en2"/10.185.81.0:cluster_interconnect,"en5"/10.185.81.0:cluster_interconnect,"en6"/169.181.146.0:public
I want to take the interface name from the file and convert it as ipaddress using ifconfig command get the output like below
en6 ->... (2 Replies)
I'm having a problem pulling UID's from data. The data outputs a user's UID in one of three ways:
1. Error User user_name already assigned with <UID>
2. Success <UID> reserved for user_name
3. <a load of crap because there was a db failure yet somehow the UID is still in there>
I typically... (5 Replies)
I have written this script. This is used for creating a backup folder.
#!/bin/sh
#set -x
. /home/.profile
usage="Usage is $0"
usage="$usage "
# Use the getopt utility to set up the command line flags.
set -- `/usr/bin/getopt b: $*`
# Process individual command line arguments
while ;... (1 Reply)
Hello Friends,
I need to find some CDRs in production servers whose 1st field value and 2nd field value = 1 and 11th looks like 45.123... where there are more than 3 digits after comma.so i wrote a one liner, something like below but does not work, however when i used first and second conditions... (8 Replies)
pfsview(1) General Commands Manual pfsview(1)NAME
pfsview - Viewer for high-dynamic range images in pfs format
SYNOPSIS
pfsview [--window_min <log_lum>] [--window_max <log_lum>]
DESCRIPTION
pfsview is a QT application for viewing high-dynamic range images. It expects pfs stream on the standard input and displays the frames in
that stream one by one.
pfsv script can be more convienent to use if hdr images are to be displayed without any prior processing.
DYNAMIC RANGE WINDOW
To show high-dynamic range data on a low-dynamic range monitor, pfsview uses concept of a dynamic range window. The dynamic range window is
the highest and lowest value that should be mapped to black and white pixel. Values above or below the window are clipped (see clipping
methods below). The dynamic range window is displayed in pfsview as a blue area on the dynamic range scale (second toolbox from the top).
The window can be moved, shrunk and expended using a mouse or a keyboard.
CLIPPING METHODS
Currently, two clipping methods are available (see View menu):
Simple clipping
The values above and below the dynamic range window are displayed as black or white.
Color-coded clipping
The values above the dynamic range window are displayed as yellow and below the window as green. This is helpful to see which parts
of the image do not fit into the selected dynamic range.
Keep brightness and hue
This method tries to preserve brightness and hue while sacrificing color saturation when the colors exceed the RGB color gamut. Col-
ors are desaturated in the RGB color space towards the neutral color (D65) of the corresponding luminance.
MAPPING METHODS
High-dynamic range data are usually better visualized using non-linear scale, for example a logarithmic or a power function. pfsview offers
several such scales, shown in View menu. Gray-scale values for each mapping method are computed by the formulas:
LINEAR: y = (x-min)/(max-min)
GAMMA: y = [ (x-min)/(max-min) ]^gamma
LOGARITHMIC: y = (log10(x)-log10(min))/(log10(max)-log10(min))
where y is the gray-scale value after mapping, x is an input HDR value, min and max are lower and upper bounds of the dynamic range window.
OPTIONS --window_min <log_lum>
Lower bound of the values that should be displayed or minimum value of the dynamic range window. The value should be given in log_10
units, for example -1 if the lower bound should be 0.1 (10^-1).
--window_max <log_lum>
Upper bound of the values that should be displayed or minimum value of the dynamic range window. The value should be given in log_10
units, for example -1 if the upper bound should be 0.1 (10^-1).
EXAMPLES
pfsin memorial.hdr | pfsview
See the memorial image.
pfsv memorial.hdr
The same as above, but using the utility script 'pv'.
SEE ALSO pfsv(1)pfsin(1)BUGS
Zomming in may sometimes show artifacts.
Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de>.
pfsview(1)