DEV Community

loading...

Linux Useful Commands

Romero Dias
Life is so short to write unproud code
Updated on ・1 min read

Find duplicate entries in text file

sort file.txt | uniq -d

Grep showing the line number

grep -in 'text to find' file.txt

Get fine lines

wc -l file.txt

Discussion (0)