hensh wrote:
| The Perl one-liner below works as expected under the TCC (v10)
| command shell. That is, it pretty prints the path. Is there a
| solution that doesn't rely on external tools, i.e., is there an
| equivalent TCC one-liner?path |! perl -pe "s/(;|=)/\n/g"
If you gave an example of what the perl command does (I don't know anything
about perl) rather than saying "it pretty prints the path" (an extremely
ambiguous statement) we might be able to help. Trying to interpret the perl
command as if it were a vi "substitute" command, it looks as if it replaced
every occurrenceof the characters ":", "|" and "=" with newlines, i.e., it
splits the path into one line per element. If that is correct, try the
command below:
@for /l %w in (0,1,%@dec[%@words[";|=",%path]]) echo %@word[";|=",%w,%path]
--
HTH, Steve