doEncode() { echo $@ | sed 's/<some rules>/g'; } This will work flawlessly... until the day you try to encode "-n" "-E" or "-e".
@mkhl Thanks. That's nicer than my hacky solution,
echo "X$@" | sed 's/^X//;s<some rules>/g'
...but it seems apt for Bash coding.
-
-
@propensive Yeah, and scripts with `sed -f` or `awk -f` shebang lines seem surprisingly underused.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.