1 - 2025-07-28 16:28:55 +0000 UTC

Tenth Line

Code

awk 'NR == 10 { print $0 }' file.txt

2 - 2025-07-28 13:53:12 +0000 UTC

Valid Phone Numbers

Code

awk '
/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/ { print $0 }
/^\([0-9]{3}\) [0-9]{3}-[0-9]{4}$/ { print $0 }
' file.txt

3 - 2025-07-28 13:52:43 +0000 UTC

Valid Phone Numbers

Code

cat file.txt | awk '
/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/ { print $0 }
/^\([0-9]{3}\) [0-9]{3}-[0-9]{4}$/ { print $0 }
'