Hello! 

This particular default version of tail cannot handle the argument, 
+line-number. 
This shortcoming does not permit portability. The work-around is to do more 
math than is necessary. 

Examples: 
Old version of tail. 

[mbarn...@corp bin]$ tail --version 
tail (coreutils) 5.2.1 
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering. 

Copyright (C) 2004 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions. There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
[mbarn...@corp bin]$ 

[mbarn...@corp bin]$ wc -l updateSSPage.sh 
64 updateSSPage.sh 
[mbarn...@corp bin]$ 

[mbarn...@corp bin]$ tail +60 updateSSPage.sh 
echo Did not find $TRGF 
/bin/mail -s "Error running file `uname -n`:$TWD/$0." n...@someco.com 
exit 
fi 

[mbarn...@corp bin]$ 

NEW version of tail. 

[mbarn...@site bin]$ tail --version 
tail (GNU coreutils) 5.97 
Copyright (C) 2006 Free Software Foundation, Inc. 
This is free software. You may redistribute copies of it under the terms of 
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. 
There is NO WARRANTY, to the extent permitted by law. 

Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering. 
[mbarn...@site bin]$ 

[mbarn...@site bin]$ wc -l updateSSPage.sh 
64 updateSSPage.sh 
[mbarn...@site bin]$ 

[mbarn...@site bin]$ tail +60 updateSSPage.sh 
tail: cannot open `+60' for reading: No such file or directory 
==> updateSSPage.sh <== 

# Clean up the old index.html_* files. 
find $TWD -name 'index.html_*' -mtime +14 -exec rm -f {} \; 

else 
echo Did not find $TRGF 
/bin/mail -s "Error running file `uname -n`:$TWD/$0." n...@liveops.com 
exit 
fi 

[mbarn...@site bin]$ 

Keeping you posted. 
Mike Barnett 

Reply via email to