mercredi 2 novembre 2016

Why Does Colon Mess Up Grep -v Option?

I was using grep to print all lines not containing :.

The code is:

grep -v '.*:.*' file.txt

However, it prints only the lines containing colon.

Why is that? I'm using grep GNU 2.25. Your positive support and input is highly appreciated.

Aucun commentaire:

Enregistrer un commentaire