Hi, all I need some help please I have a code to format some text The problem is that it is not doing exactly what I want sample of file is enclosed the out.txt is the input file which is being read by the code The script chops the first 21 lines after running thru the script it looks like outto.txt The problem is that it leaves the last two lines which I do not want Another thing is that the contents of out.txt may vary it may have more or less lines But the top portion is constant so that we can take out 21 lines easily What to do with the bottom two lines What I need is to chop off the last two lines. Please let me know if you have any questions Thanks junaid for /f "skip=21 tokens=*" %%j in (c:\batch\temp\out.txt) do echo %%j >> c:\batch\temp\outto.txt <<out.txt>> <<outto.txt>>
Siebel Enterprise Applications Siebel Server Manager, Version 5.6.0.15 [6136] ENU Copyright (c) Siebel Systems, Inc. 1995-1998. This software is the property of Siebel Systems, Inc., 1855 South Grant Street, San Mateo, CA 94402-2667. User warrants that any use of this software is governed by the terms and conditions of the Siebel Systems Software License and Services Agreement which has been executed and with which the user agrees to comply. UNAUTHORIZED POSSESSION, DISCLOSURE OR USE OF THIS SOFTWARE OR THE INFORMATION CONTAINED HEREIN IS PROHIBITED BY FEDERAL AND STATE LAW. If you have received this software in error, please notify us by telephone immediately at (650) 295-5000. Type "help" for list of commands, "help <topic>" for detailed help srvrmgr:s1_nxlkdev5> list tasks for server S1_NXLKDEV5 SBLSRVR_NAME SVC_NAME COMP_NAME SVC_COMP TASK_NUM TASK_PID SVC_MODE TASK_STATE START_TIME END_TIME TASK_STATUS ------------ ------------- ------------- --------- -------- -------- -------- ----------------- ------------------- ------------------- ------------------------------------------------------------ S1_NXLKDEV5 ServerMgr ServerMgr ServerMgr 15387 1047 Session Running 08/07/2001 14:34:31 Processing "List Tasks" command S1_NXLKDEV5 ServerMgr ServerMgr ServerMgr 15386 Session Completed 08/07/2001 14:33:01 08/07/2001 14:33:02 Cleaning up S1_NXLKDEV5 ServerMgr ServerMgr ServerMgr 15385 Session Completed 08/07/2001 14:31:43 08/07/2001 14:31:45 Cleaning up S1_NXLKDEV5 ReqProc ReqProc ReqProc 15372 888 Server Running 08/03/2001 11:46:00 S1_NXLKDEV5 BGNotifyWFM BGNotifyWFM WorkMon 15381 906 Server Running 08/03/2001 11:46:00 Processed 0 requests S1_NXLKDEV5 VitriaWorkMon VitriaWorkMon WorkMon 15380 903 Server Running 08/03/2001 11:46:00 Processed 0 requests S1_NXLKDEV5 BGNotifyWFM BGNotifyWFM WorkMon 15364 Server Exited with error 08/03/2001 11:45:59 08/03/2001 11:45:59 SMI-00025: CompCleanup is an invalid entry point in sssawmon 7 rows returned. srvrmgr:s1_nxlkdev5>
S1_NXLKDEV5 ServerMgr ServerMgr ServerMgr 15387 1047 Session Running 08/07/2001 14:34:31 Processing "List Tasks" command S1_NXLKDEV5 ServerMgr ServerMgr ServerMgr 15386 Session Completed 08/07/2001 14:33:01 08/07/2001 14:33:02 Cleaning up S1_NXLKDEV5 ServerMgr ServerMgr ServerMgr 15385 Session Completed 08/07/2001 14:31:43 08/07/2001 14:31:45 Cleaning up S1_NXLKDEV5 ReqProc ReqProc ReqProc 15372 888 Server Running 08/03/2001 11:46:00 S1_NXLKDEV5 BGNotifyWFM BGNotifyWFM WorkMon 15381 906 Server Running 08/03/2001 11:46:00 Processed 0 requests S1_NXLKDEV5 VitriaWorkMon VitriaWorkMon WorkMon 15380 903 Server Running 08/03/2001 11:46:00 Processed 0 requests S1_NXLKDEV5 BGNotifyWFM BGNotifyWFM WorkMon 15364 Server Exited with error 08/03/2001 11:45:59 08/03/2001 11:45:59 SMI-00025: CompCleanup is an invalid entry point in sssawmon 7 rows returned. srvrmgr:s1_nxlkdev5>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]