7
issues with bash commands as variables
(monero.town)
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
I have had some problems doing what you're trying to do. Replacing the variable with a function would work.
rmdec() { sed 's/...$//'; }
Perfect. That did the trick. So when running a bash command like that putting it in a function keeps it from getting screwed up apparently