I am looking for a pattern and want the First line to be printed from that searched pattern, though i can do that via sed & awk but looking for a shorted one liner , i tried below two way which is producing a entire output ..

```
# dmidecode | awk 'NR == 1 || /Product/'
# dmidecode 3.0
        Product Name: SYS-749P-TR
        Product Name: X11DPi-N
        Product Name: SYS-7049P-TR
        Product Name: X11DPi-N

```

Second:

```
# dmidecode | awk '/Product/ || NR == 1'
# dmidecode 3.0
        Product Name: SYS-749P-TR
        Product Name: X11DPi-N
        Product Name: SYS-7049P-TR
        Product Name: X11DPi-N

```

While using via multi-piped way it works.

```
# dmidecode | awk '/Product/' | awk 'NR==1{print $3}'
Product Name: SYS-749P-TR

# dmidecode | grep Product | sed -n 1p
Product Name: SYS-749P-TR

```