10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am loving this integer maths thing.
64 bit systems are certainly easier than 32 bit, but hey, I don't intend to leave out my fav' platform.
Using one of the 'Brothers' methods, URL inside the code.
# Brother's formula .
#... (2 Replies)
Discussion started by: wisecracker
2. Shell Programming and Scripting
Hi, I am trying to make a maths calculator that:
1. Prompts the user for a number.
2. Prompts the user for an operation (add, subtract, divide or multiply)
3. Prompts the user for a number.
4. Prompts the user for another operation (same as above) OR the option to get the result for the... (4 Replies)
Discussion started by: johnthebaptist
3. Shell Programming and Scripting
I've made a few scripts which using GDAL extract the value of a pixel within a given raster. The purpose is to work out the combine value of every pixel. I thought there may have been an easier way to do this but alas!
The code below extracts the pixel value at position X Y. The... (3 Replies)
Discussion started by: StudentFitz
4. Shell Programming and Scripting
I'm trying to write a while loop for a decimal value in tcsh which I know can't be done. Instead I want my increments to be one order of magnitude too large and then divide it by 10 when I use the variable. However, I don't know how to divide my variable and set it as another.
set... (1 Reply)
Discussion started by: DFr0st
5. Shell Programming and Scripting
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
If 3.1 = "complete" then
if 3.2 = ''COMPlete" then
The... (1 Reply)
Discussion started by: shashi369
6. Shell Programming and Scripting
deleted (1 Reply)
Discussion started by: zxc
7. Shell Programming and Scripting
if input to the perl program is ' ( p * ((a+b) * (c+d))) + q ' it shuld give the output as ' pac + pad + pbc + pbd + q ' .can anyone suggest a way to do this ? (7 Replies)
Discussion started by: Anuj8584
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
9. Shell Programming and Scripting
Heres a script i wrote as a bit of practise. What it does is insert a line in the middle of a file. The line being $1 and the file being $2
linenum= `wc -l < $2`
echo $1 >> $2
even=`expr "$linenum" % 2`
then... (3 Replies)
Discussion started by: Quesa
10. Shell Programming and Scripting
I have added a line into /etc/profile which looks like-
date > $HOME/.lastloggedon
This puts a file lastloggedon into everyones directory who has logged in recently.
The trouble I am having is getting the information back out.
I was hoping there was a command using find which brought... (1 Reply)
Discussion started by: karenshaw