grep find lines that end in a certain string or charecter

    By: Manu
    3 years ago

    You should be in the directory were text file is then you can use this command in linux

    grep 'Nw$' text.txt
    

    Here Linux will return strings where line ending with "Nw".

    "Nw" will be highlighted