Trying to write a script that reads a file and prints everything after a certain string is found to the end of the file. Awk is giving me an error and not sure why it doesn't work:
# cat test_file
Mon Nov 16 2009 16:11:08
abc
def
Tue Nov 17 2009 16:08:06
ghi
jkl
Wed Nov 18 2009 08:11:06
mno
pqr
Thu Nov 19 2009 13:21:56
stu
vwx
I want everything after Tue Nov 17 2009 16:08:06 but get a syntax error. Can someone show me what I am doing wrong?
# awk '/Tue Nov 17 2009 16:08:06/,0' test_file
awk: syntax error near line 1
awk: bailing out near line 1
Figured it might be the : but I also try
# awk '/Tue/,0' test_file
awk: syntax error near line 1
awk: bailing out near line 1