The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Check last line with gawk?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Check last line with gawk?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
10-04-2006
sjf
Registered User
Join Date: Oct 2006
Posts: 3
Or can I do something like:
/\/\* eof \*\// {
if (Check if last line of file)
{
print FILENAME ": yay woot foo" > "/dev/stderr"
}
else
{
print FILENAME ": failed" > "/dev/stderr"
}
}
So how do I "Check if last line of file"?
sjf
View Public Profile
Find all posts by sjf
Find sjf's past nominations received
Find sjf's present nominations given