2013-12-26 To print the even or the odd lines, [0] with awk: awk 'NR%2' # odd awk 'NR%2==0' # even And with sed (without the need for the modulo calculation): sed 'n;d' # odd sed -n 'n;p' # even But surely, cat(1) has an option for that as well ... :-/ [0] http://debianforum.de/forum/viewtopic.php?f=34&t=146682&p=967756#p967756 http://marmaro.de/lue/ markus schnalke