06-04-2010
The way your code is written it must read from stdin. I think we need to see a few lines above...
What do you mean 'does not work' - what is your input and expected output
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Is there a way to evaluate an equation contained in a string within an AWK script?
For example:
A = "(5*2)-1" (this equation is read from a file and varies line by line)
In this example, I can't see any way to get an answer of 9 unless I do:
cmd = "awk 'BEGIN{print "A"}'"
cmd |... (3 Replies)
Discussion started by: srdgeo
3 Replies
2. UNIX for Dummies Questions & Answers
Hi all!
I'm writting one script to copy a file in various folders, but there are 2 things to validate. First that the folder where i'll be cpying exists, and second that i have permissions to copy the file in it.
so far i have found the way to validate the folder exists, but when trying to... (6 Replies)
Discussion started by: feliperivera
6 Replies
3. Cybersecurity
Hello guys,
I'm actually working on my master thesis which has for subject the evaluation of virtual firewall in a cloud environment. To do so, I installed my own cloud using OpenNebula (as a frontend) and Xen (as a Node) on two different machines. The Xen machine is my virtual firewall thanks... (2 Replies)
Discussion started by: Slaughterman
2 Replies
4. Shell Programming and Scripting
Using ksh to call a function which has awk script embedded.
It parses a long two element list file, filled with text numbers (I want column 2, beginning no sooner than line 45, that's the only known thing) . It's unknown where to start or end the data collection, dynamic variables will be used. ... (1 Reply)
Discussion started by: highnthemnts
1 Replies
5. Shell Programming and Scripting
I have made a simple script to find all programs that use a tcp wrapper, it will supply a reasonable default for my system if none is given.
After some digging I realized that the expansion operators pass their default return value single quoted (according to bash -x trace). I have wildcard... (0 Replies)
Discussion started by: Riker1204
0 Replies
6. AIX
Hello,
IBM offers a evaluation version of their XL C/C++ compiler. Unfortunatly v16.1 (from Developerworks) can not be installed on AIX 5.3 (I can not upgrade my old 32 Bit RS/6000 to a later version) and I have not found any older versions on the IBM and Developerworks pages.
Is there a... (8 Replies)
Discussion started by: eh2scqw
8 Replies
7. Shell Programming and Scripting
I have made a simple script to find all programs that use a tcp wrapper, it will supply a reasonable default for my system if none is given.
After some digging I realized that the expansion operators pass their default return value single quoted (according to bash -x trace). I have wildcard... (2 Replies)
Discussion started by: phuongnguyen
2 Replies
8. Shell Programming and Scripting
Could somebody please explain to me why and how the highlighted line(s) (?) of code puts the "test" evaluation into "result" and then to $enable_static ? Or does not ?
I did comment out the original code and changed it to what I feel is less cryptic , but the "result" is still wrong =... (3 Replies)
Discussion started by: anne
3 Replies
LEARN ABOUT DEBIAN
gpiv_getbit
GPIV_GETBIT(1) General Commands Manual GPIV_GETBIT(1)
NAME
gpiv_getbit - Image processing program for PIV images.
SYNOPSIS
gpiv_getbit [-b N] [-h | --help] [-p | --print] [-v | --version] [filename] < stdin > stdout
DESCRIPTION
gpiv_getbit get the N least significant bits and moves them to most the significant bits. This results that a weak image signal (pixels of
low value) is amplified while the high signal within the image will be removed.
The parameters read from the configuration resources (containing the key GPIV_IMGPROC) may be overruled by the command line options, as
explained below.
Options
-b N Defines the bit number [0, .., 7]. Signal from 0 to N will be shifted.
-h | --help
On-line help
-v | --version
Print version information on standard output, then exit successfully.
filename
Input image filename. Overrides stdin and stdout with the full filename of the image. Output will be written to filename.png. Param-
eters are stored in filename.par and may be used for future use by including them in ./gpivrc. If stdin and stdout are used, the
input is expected to be a PNG formatted image.
SEE ALSO
gpivtools
AUTHOR
Gerber Van der Graaf
7 November 2006 GPIV_GETBIT(1)