Hello there, I am posting to seek help with a KSH script,
I am making a simple calculation program where the user can enter as many numbers as they like, I am getting their input using the read command, however I am not sure how to repeat doing this and storing the input in to new variables until the user wants the program to calculate.
Here is what I have so far
Code:
#!/bin/ksh
# python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help()
Welcome to Python 2.7!
Hi all, I am reading through the Non-Programmer's Tutorial and I would like to make a program with Python in which is similar to the one in the example.
Hello,
I'm new to the python programming, and I have a question.
I have to write a program that prints a receipt for a restaurant.
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.
ie, scan lines 45 - 20000 first pass.
I've set the working directory and the same input as I would type if I was in the terminal, which is
Code:
python brainworkshop.pyw
but it does nothing. What do I need to do?
Never mind, I set the file association with Python and it looks good now. Still I think I need this program.. :P
Hello,
I need to run a command for a set of input variables that are present in a tab delimited file, a sample of which is shown below:
1 3749
1 4129
1 5980
2 6201
2 9925
2 6894
3 1338
3 6477
3 6242
3 3632
Every row represents the two input values that my command will take and give results. How can I do this with a 'for' loop?
Thanks,
Guss
I am setuping my server and I must disable the ping requests for everyone except me and a list of hosts (aaa.bbb.ccc.ddd).
I am using the tool ufw, on ubuntu server, I read that I have to comment those lines:
ok icmp codes
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-input -p icmp --
I'm learning go and I cant seem to find how to get input similar to cin in c++ or input() in python 3.x or raw_input() in python 2.x