Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch script for parsing text file
Name: alphatech Date: April 23, 2009 at 12:23:41 Pacific OS: Windows XP Subcategory: Batch
Comment:
I have this text file that is one long string with no carriage return. What I want to do is a line break or carriage return whenever it finds the text string "~NM1" Here is what I have so far.
> newfile For /f "tokens=1,* delims=~NM1" %%a in (%*) Do ( Echo.%%a If not "%%b"=="" Call :SPLIT %%b) GoTo :EOF :SPLIT For /f "tokens=1,* delims=~NM1" %%a in (" %*") Do ( Echo.%%a If not "%%b"=="" Call :SPLIT %%b) GoTo :EOF
I run it and get no errors but it does not do anything. I got some of this code from previous post on this site. Thanks to anyone who can point out what I am doing wrong or missing.
Summary: I have problem writing this batch file to read a text file. Been using the for /f command but doesn't seem to be working. This is a sample of the text file. HLU/ALU Pairs: HLU Number ALU Number...
Summary: Hi I want to Edit one one of the Auth file in SVN , so that it gives an error msg to user if he puts some undesired characters in that file, like one should enter any (a-z,A-Z,0-9,#,) any other chara...
Summary: I need some help making a batch file than can parse a text file containing data on each line. At the same time, it needs to discard any "non-English" characters present. I'd like each line parsed to b...