when write command on terminal it works correctly but when write command on .sh file shows an error
my command:
echo "hell\ro" | sed -e "s/[\]r//g"
test.sh file:
#!/bin/bash
echo "hell\ro" | sed -e "s/[\]r//g"
when execute using the command bash test.sh it shows error like this sed: -e expression #1, char 10: unknown option to `s'
sed varsion sed (GNU sed) 4.7 Packaged by Debian