Checking for a set bit outside a "mask" value can be easily done with "binary" operations; unfortunately, awk doesn't allow for this, afaik. bash can do it:
You see that bit0 is NOT in MASK, but bit7 is.
Having problem in using the grep command to select all possible combinations a number in a file. Example: 123, I would like to grep the numbers 123,132,213,231,312 and 321. (2 Replies)
Hello All,
i have two files, one of the format
A 123
B 124
C 234
D 345
And the other
A 678
B 789
C 689
D 567
I would like to combine them into one file with three columns:
A 123 678
B 124 789
C 234 689 (4 Replies)
Hi,
I am using the Korn-Shell (ksh) and would like to know all the shortcut keys. For example: Shift + Insert etc.
Thank you very much.
Take care (0 Replies)
Hi,
I need to generate all combinations upto n-1 level,
if the input file looks like say,
A
B
C
D
.
.
....
I need to generate all combinations such that first value remains constant and the remaning are combined with all possible ways.
Output
A
AB
AC
AD
ABC (1 Reply)
HI I have a series(sorted), which i require to create combinations. I am not getting the good code for doing this. My series should generate the following combinations... Please help me in getting this in C++. Thanks for your help.
A:
A
A B:
A
B
A B
A B C:
A
... (1 Reply)
Hi Team
when i do, echo on my host box it returns (see below)
# echo $PS1
\$
I need to set a color comination of my own
for \u means for user : red
for \h means for hostname: blue
for \W means present working directory: pink
for $ means for wht prompt : yellow
Do i need to... (1 Reply)
Hello Scrutinizer / Group ,
The shell script of awk that Scrutinizer made calculate all possible permutations in this case 3125 (5 numbers) but i want to have only the 126 possible combination. For now it does not matter the specific order of the combination numbers.
I would appreciate it you... (1 Reply)
How can I get all combinations of 5 words from 10 words.
For example I have 3 words and I want to get all combinations of 2 words.
"A", "B", "C" it would like AB, BC, AC.
Maybe you know some usefull code or example.
Thanx a lot.
P.S. Sorry if I'm not right enough cause I don't know English... (2 Replies)
Hi,
I have an input file like this
a
b
c
d
I want to print all possible combinations between these records in the following way
aVSb
aVSc
aVSd
bVSc
bVSd
cVSd
VS indicates versus. All thoughts are appreciated. (5 Replies)
hello,
I'm reading this thread, in which there is this code :awk '
function comb(v,i) {
for(i in A) {
delete A;
if(length(A))
comb((v?v"+":x)i)
else print v"+"i
A;
}
}
{ A }
END {
comb();
} ' infilebut I can't understand where does v come... (5 Replies)
Discussion started by: daPeach
5 Replies
LEARN ABOUT DEBIAN
normpat
NORMPAT(1) General Commands Manual NORMPAT(1)NAME
normpat - normalize RADIANCE pictures for use as patterns.
SYNOPSIS
normpat [ -v ][ -b ][ -f ][ -r maxres ] picture ..
DESCRIPTION
Normpat normalizes one or more RADIANCE pictures to an average brightness of 1.0 and optionally removes fundamental frequencies and blends
the edges of the image. The original images are overwritten during this process, and it is recommended that the program work on copies of
the pictures for this reason.
The -r option can be used to set the maximum horizontal or vertical resolution of the final result, which should not be greater than 256
for most patterns (due to the associated memory burden during rendering). The -f option uses a Fourier transform to remove the lowest fre-
quencies from the image, reducing the noticeability of pattern repitition. The -b option can be used to blend the edges of the image so
that when it is tiled, the seams are less apparent. The -v option turns on the verbose flag, which prints on the standard output progress
messages as the script runs.
Normpat is a shell script that makes calls to other RADIANCE programs that do the actual work.
AUTHOR
Greg Ward
SEE ALSO getinfo(1), pcomb(1), pcompos(1), pfilt(1), pflip(1), protate(1), psign(1), ra_bn(1), ra_pr(1), ra_t8(1), ra_t16(1), rpict(1)RADIANCE 11/15/93 NORMPAT(1)