I need to search for multiple target strings in a text document. I work with .srt files in Text Edit. I need search for the strings ' os ', 'éis', 'áis', 'vosotr' and 'vuestr' to identify if the files are in European or Latin-American Spanish. I'd just like to paste a string containing all of those targets, rather than having to type them out individually each time.
After googling, I tried using grep in the terminal, using the command grep -Ei " os |áis|éis|vosotr|vuestr" and dragging the .srt file into the Terminal window. But when I press 'Return' nothing happens it just goes to a newline and returns to the Terminal prompt... Any ides..?
(MaOS Sequoia 15.3)
After googling, I tried using grep in the terminal, using the command grep -Ei " os |áis|éis|vosotr|vuestr" and dragging the .srt file into the Terminal window. But when I press 'Return' nothing happens it just goes to a newline and returns to the Terminal prompt... Any ides..?
(MaOS Sequoia 15.3)
Attachments
Last edited: