8 More Discussions You Might Find Interesting
I need some help.
I use variables and conditionals to build with or without specic libraries. I set
USEAL ?= 1 # get value from cmd, defaults to 1
the conditional is:
LIBS = <any libs>
Its amazing that this works when invoked... (4 Replies)
Discussion started by: dodona
2. Shell Programming and Scripting
Hello, pro scripters, noob here,
I am complete noob in this and I have to write a program which:
Calculates the modulus of two numbers which the user enters with keyboard. Number interval 1-9. These two numbers that were entered and modulus which was calculated are stored in a separate file.... (1 Reply)
Discussion started by: IrmantasID
if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
4. Shell Programming and Scripting
Hi there, I have a table that stores multiple records for many different servers, each of which is timestamped ... I wanted to write a query that would enable me to only output the "latest" record (based on timestamp) for each "unique" server. So for example my main table looks like this
... (3 Replies)
Discussion started by: hcclnoodles
5. Shell Programming and Scripting
Hi was wonderring about the syntax for the following peice of code:
while ] ; do
This is apparently incorrect. I want the loop to continue WHILE $life is not equal to zero or $mask is not equal to $word. Should ONE of these conditions fail to be met, loop should break out. Any ideas? ... (8 Replies)
Discussion started by: santeria
6. Shell Programming and Scripting
Can anyone advise how to log successful conditionals (unix commands) from any ksh script?
For example, the code is as follows:
Block1 of statements
Block2 of statements
What needed exactly is to log "Block1 of statements" if its conditon is met.... (4 Replies)
Discussion started by: kadi
7. Shell Programming and Scripting
Yet another question. I want to make something like this:
but that apparently is not right. I want either the first condition to be true OR the second AND third conditions to be true for the "then" to be processed. How can I do this? (1 Reply)
Discussion started by: jeriryan87
8. Shell Programming and Scripting
I have a matrix , how do I compare all the elements of a column , lets say I want to check if the columns contain the alphabets "S","H","A","R","A","T".
and not "X"s.
Lets say matrix looks something like this ..
I can hard code it where... (4 Replies)
Discussion started by: sharatz83