For searching odt documents I used the command
for f in *.odt; do echo $f; odt2txt "$f" | grep -i "Слово поиска"; done
As expected, when outputting grep, it highlighted the search phrase (light red bold). Today decided to transfer it to the script
#!/usr/bin/sh for f in *.odt do echo $f odt2txt "$f" | grep -i "$1" done
It still works, but for some reason the search phrase is not highlighted (everything is displayed in standard font), as in the case of a single command from the console. Why, and how to return the backlight?