I use eda bash script to search for a file; the command will /display content that I do not want. I tried redirecting >/dev/null 2>&1, but this did not work for me.
text file foo.txt:
a
b
c
bash script bar.sh:
ed -s foo.txt << EOF
/b/
EOF
> /dev/null 2>&1
result:
$ ./bar.sh
b
How to stop edprinting a consistent line b?
source
share