Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file that will provide data from certain line item

Status
Not open for further replies.

Zim14

MIS
Feb 12, 2002
3
US
I have several log files that are appended with the results for the days activities. I need the 2nd to the last line of every log file >> log.txt. I know what to do in UNIX but it doesn't appear Windows can perform a 'tail'. of a file. I have been playing with the 'find' command and 'For In (set) Do' loop, but I think that I am trying to over-engineer this thing. Anybody got a quick-fix for me???
 
You'll probably want to write a VBScript to do this unless somebody has a set of DOS-style utilities to head/tail files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top