Second time trying to post this, I've additions to make to the prior post that didn't show up,
and I've been waiting about 30 min or more for it to appear in the forum.
So here it is again with my edits.
so far I've formulated only this much of an idea from reading other forum posts:
Code: Select all
for /f "tokens=1,* delims=]" %v in ('find /n /v "" ^< "%1" ^| findstr "^@㏑▪" ') do ???
im looking for a separate batch file that will remove, and inject,
line numbers in the command line parameter supplied path
where ever it finds the following string of unicode.
and until it reaches this unicode character.
(Note the above character is not ascii colon, but a unicode version.)
so for example, the batch shortcut that commits these changes is
will search through
and anywhere it finds
it will delete ZERO or more characters until it encounters a
； ←again this is a unicode character not a colon.
then inject the line number of the line it is currently editing.
perhaps resulting in @㏑▪215； or the like.
I -have- searched for such a batch function all over google, and the closest i came to required yet another library file, JREPL8.6.zip which i am not looking to include in my builds just to inject line numbers into my batch echos. The FIND method is a bit squirrely to me and beyond my grasp at this hour. im guessing some sort of for /f "tokens=
my rig in win7 and i favor concise code over cross-version compatibility.
but in this case, id prefer 7 and up compatibility.
anyone want to lend some brain storming to this concept? I don't see a lot of it going around on the net.