Search found 3 matches

by papageek
03 Sep 2012 17:42
Forum: DOS Batch Forum
Topic: creating a "find" output with ONLY the lines you want!
Replies: 7
Views: 5155

Re: creating a "find" output with ONLY the lines you want!

Squashman you are absolutely correct! I tried to “simplify” the problem and wound up making it more difficult to understand what I really needed. Here is the new code that works even better with foxidrive’s suggestion @echo off echo * * * * this is the original file: * * * * type server\myssi_subnav...
by papageek
03 Sep 2012 12:11
Forum: DOS Batch Forum
Topic: creating a "find" output with ONLY the lines you want!
Replies: 7
Views: 5155

Re: creating a "find" output with ONLY the lines you want!

Thanks for the first hint ABC. It got rid of the first empty line, but also truncated the lines. Here is an example of the actual BAT file that I’m using, xx.bat (with a couple extra type command to show the input and output): @echo off type server\myssi_subnav.inc del newfile.inc for /f "skip=...
by papageek
03 Sep 2012 10:01
Forum: DOS Batch Forum
Topic: creating a "find" output with ONLY the lines you want!
Replies: 7
Views: 5155

creating a "find" output with ONLY the lines you want!

I'm trying to use find to strip some lines out of an existing file using the /v options. When I do the output contains the line ------ filename, preceded by a blank line. When I pipe the output to kill the ----- line I still get the blank line in my output. Here is the output to a dos prompt that il...