|I have a script I just wrote which function |
serves as a message encoder/decoder.
Simplified steps include:
1) It asks the user for input.
2) Each key stroke is given it's own variable
name/number (ie, char1ac, char2ac ...etc).
3) Each keystroke is re-assigned a new value
but keeping the same variable name.
4) The messages is re-built and displayed
using the echo command | and piped into a
.txt file for future use.
My problem is step 4. Since the user input
could be 3 keystrokes or 30, there is no set
number of variables created (char1ac) so I
can't just create a line that says:
echo %char1ac% %char2ac% ...etc
so I want a line that will echo all the variables
on one line but using a wildcard (or something
What I have now is just a loop that will echo
each keystroke, but this will appear on a
The goal is to keep the original keystroke
number intact... and the script does not create
How can I do this?