Skip to main content
The "1" in "Linux1" and the leading whitespace was missing
Source Link
Bernhard
  • 12.6k
  • 5
  • 62
  • 70

This should work for this specific case.

awk '/^[ \t]*Linux1^[[:blank:]]*Linux1/ {print}'

This should work for this specific case.

awk '/^[ \t]*Linux1/ {print}'

This should work for this specific case.

awk '/^[[:blank:]]*Linux1/ {print}'
The "1" in "Linux1" and the leading whitespace was missing
Source Link

This should work for this specific case.

awk '/^Linux^[ \t]*Linux1/ {print}'

This should work for this specific case.

awk '/^Linux/ {print}'

This should work for this specific case.

awk '/^[ \t]*Linux1/ {print}'
Source Link
Bernhard
  • 12.6k
  • 5
  • 62
  • 70

This should work for this specific case.

awk '/^Linux/ {print}'