Translations:UI and Help files Content Guide/80/en

    From The Document Foundation Wiki

    The grep command is used under Linux, macOS or Unix-like systems to search through text files, or to search the given file for lines containing a match to the given strings or words. The command will display the line matching the search.

    • The simplest syntax is:
    grep 'word' filename.po
    
    Example:
    sophie@sophie:~/libo_ui-fr$ grep 'Browse' accessibility/source/helper.po
    
    returns
    msgid "Browse"
    
    Here we are telling the grep command to find the word Browse in the helper.po file, which is in the subdirectory source of the accessibility directory.