Posts by Jorge • 86 points
1 post
-
7
votes1
answer67
viewsA: How to count the lines of an output in the terminal?
Use the grep: grep -c ^ lista_de_compras.txt The exit will be 3 or user the cat with the wc cat lista_de_compras.txt |wc -l The exit will be 3 Or just use the wc: wc -l lista_de_compras.txt The exit…