Én így szoktam: grep -Ev "^#|^$" akarmi.txt Hosszú, kommentekkel telerakott config fileoknál baromi hasznos.