1

grep a single word...not two!

view story
linux-howto

http://www.linuxquestions.org – So if I use: $<my command> | grep dim4 #I get to options: Output : dim4 42 pixdim4 1.0000000000 But I would like just the 'dim4 ' line to appear without the pixdim4 line....like this: $<my command> | grep dim4 #I want the output just with the first line: Output: dim4 42 How can i make it work? Thanks in advance! (HowTos)