I\'m using a serial terminal to provide input into our lab experiment. I found that using
$ echo \"5X5\"
just returns a string of \"
I have a simple script I use for this:
me@mycomputer:~$ cat /usr/local/bin/c
#!/bin/sh
echo "$*" | sed 's/x/\*/g' | bc -l
It changes x to * since * is a special character in the shell. Use it as follows:
c 5x5c 5-4.2 + 1c '(5 + 5) * 30' (you still have to use quotes if the expression contains any parentheses).