SyntaxFix
Write A Post
Hire A Developer
Questions
This is the solution which can avoid using function:
alias addone='{ num=$(cat -); echo "input: $num"; echo "result:$(($num+1))"; }<<<'
test result
addone 200 input: 200 result:201