The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-04-2006
sjf sjf is offline
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"?