Home > front end >  Passing < and > as literal arguments in bash
Passing < and > as literal arguments in bash

Time:12-17

How to pass to the script the sign of the comparison operation as an argument when run in the console?

CodePudding user response:

How to pass to the script the sign of the comparison operation as an argument when run in the console?

To disable special meaning of > < as redirection operators, quote or escape them.

echo '<' '>'
echo \< \>
  • Related