Show only the lines in a file containing a given substring: grep substring file
Case insensitive search: grep -i substring file
Showing all the lines but the ones containing a substring: grep -v substring file
Search through all the files in a directory: grep -r substring dir
Sort lines in a given file: sort file 
Sort lines, only display duplicate ones once: sort -u file (unique)


Esta resposta foi útil? 0 Utilizadores acharam útil (0 Votos)