I'm asking the user to enter a number and if the number is greater than 2 then I like to add the string -n to that number. Here's my code:
read -p "Enter a number " result_sort if [ $result_sort >2 ]; then result_sort = $result_sort + " -n" fi echo "$result_sort" I'm getting the error: command not found