I'm making an English to Morse Code translator and I was able to mostly get it all working by looking through older posts here; however, I have one small problem.
When I run it it's just printing spaces for where the characters should be. It runs the right amount of times, and if I try to individually print out of the array it works, but when I try to have it cycle through to translate I get the problem.
What I am running/output:
My code:
If I do something like
It prints off the corresponding Morse code so I assume the issue isn't with the array but with how I am substituting and I'm not sure how to fix it.
how do we print the entire contents of arrays in dbx ?
Ive tried using print x to print values 1 to 5 of the array x, however dbx complains and doesnt allow this
help is much appreciated (1 Reply)
- I m retreving values from database and wish to use those values later in my shell script. I m placing these values in an array da_data but outside loop array is empty.Problem is its treating array as local inside loop hence array is empty outside loop.
Plz go through the script and suggest how... (1 Reply)
I need to do something like this:
for i in 1 2 3 4 5; do
arr=$(awk 'NR="$i" { print $2 }' file_with_5_records)
done
That is, parse a file and assign values to an array in an ascending order relative to the number of record in the file that is being processed on each loop.
Is my... (2 Replies)
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Is there a way to print multiple array elements without iterating through the array using bash?
Can you do something like...
echo ${array}and get all those separate elements from the array? (2 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
array=( 8 5 6 2 3 4 7 1 9 0 )
for i in "${array}"
do
echo $i
done
# i need the output like this by swapping of array values
0
9
1
7
4
3
2
6
5
8 (7 Replies)
I have a headerless array of 1000 columns x 100000 rows. The array only contains 4 values; 0/0, 0/1, 1/1, ./.
Here I am showing the 1st 3 rows and columns of the input array
0/0 0/0 1/1
0/1 0/1 0/1
0/0 ./. 0/0
0/0 0/0 0/0
I would like to convert the values in... (9 Replies)
Discussion started by: Geneanalyst
9 Replies
LEARN ABOUT OPENSOLARIS
morse
MORSE(1) MORSE MORSE(1)NAME
morse - A robotics simulator based upon the Blender Game Engine
SYNOPSIS
morse [command] [options]
DESCRIPTION
Morse, the Modular OpenRobots Simulation Engine, uses the Blender Game Engine to provide a general purpose robot simulator. A robot and
its environment are defined in Morse by creating a model in Blender. Actuator and sensor objects are attached to a model, and may be inter-
acted with via a variety of middleware protocols. Simulations can be programmed via Python scripts or inside of Blender itself. Currently
supported middleware includes YARP, MOOS, ROS, Pocoslibs, as well as a plain socket interface.
COMMANDS
[None] Launches the simulator interface with a default scene
create filename
Creates a new empty scene and launches the simulator interface
run filename
Runs a simulation without loading the simulator interface
exec filename
Runs the given Python script with a default scene
check Checks the environment is correctly setup to run morse
help Displays information regarding the program
version
Displays the version number
SEE ALSO morseexec(1)blender(1)COPYRIGHT
2009-2010, LAAS-CNRS/ONERA ; 2010-2012, LAAS-CNRS
0.5.2 May 14, 2012 MORSE(1)