Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by JohnQSmith

  1. JohnQSmith

    TYPE leaves the file open

    Point taken.
  2. JohnQSmith

    TYPE leaves the file open

    ...or you could add it to your reported bugs list.
  3. JohnQSmith

    echo-rainbow.bat - rainbow-ize any message

    There is no "s" in your shortest sentence with all letters. It should be "The quick brown fox jumps over a lazy dog."
  4. JohnQSmith

    Open localhost from the command line

    I'm a little late to the party, but shouldn't the "http:\\..." be "http://..."? Actually, I just tried it; it works both ways.
  5. JohnQSmith

    Finding the offset of a string in a file

    I use it to run other people's scripts (awstats, sendEmail, ack) and as a SED replacement. Edit: I don't know if that's a good enough reason to keep 620MB of files on my hard drive, but it comes in handy when I need it.
  6. JohnQSmith

    Finding the offset of a string in a file

    Glad to help. https://strawberryperl.com/ You can download a ZIP version so you don't even have to install it, just extract and add to path.
  7. JohnQSmith

    Finding the offset of a string in a file

    This returns the "actual value of it". perl -p -e 's/.*FullPath":"(.*?)".*/\1/;' -e 's/\\\\/\\/g;' ApplicationPrivateSettings.xml Edit: Here it is again if you're running it from Windows command line (CMD/TCC) instead of from Cygwin. perl -p -e "s/.*FullPath\":\"(.*?)\".*/\1/;" -e...
  8. JohnQSmith

    Finding the offset of a string in a file

    If you have Microsoft Edge (the new Chromium edition) or even the older IE11, you can drag the XML file into it. It has a built-in XML viewer.
  9. JohnQSmith

    Interesting TPIPE sort algorithm artifact

    Well that's just bass ackwards. That would put TCMD at version... hmm... lemme think... 28.02.18 - third column = 18 28.02.18 - second column = 02 28.02.18 - first column = 28 So that's 18.02.28... Hey! We're back in 2015! Little endianness kinda works for memory management; not much else...
  10. JohnQSmith

    Done Pipe only stderr....

    0:00:00.002 [C:\temp] 14:56:13 $ (echo stdtest & echoerr errtest) 2>CLIP: & set var=%@CLIP[] stdtest 0:00:00.017 [C:\temp] 14:56:22 $ echo %var errtest EDIT: Yes, I know it's a redirect and not a pipe.
  11. JohnQSmith

    Interesting TPIPE sort algorithm artifact

    @rconn Please update documentation for tpipe /sort to indicate that if the Length parameter is zero, then it continues to EOL. e.g. Length - The length of comparison; if 0 compare to end of line
  12. JohnQSmith

    Interesting TPIPE sort algorithm artifact

    Got what you're looking for. You need to sort from minor to major to keep the correct orders. Also expand your "length of comparison" otherwise you're only sorting a local value and tpipe has no point of reference for the rest of the line. EDIT: Looks like if you set the "length" of comparison...
  13. JohnQSmith

    LEAVE appears to affect command-line arguments

    You have to duck more to avoid hitting the gull-wing doors. https://en.wikipedia.org/wiki/DeLorean_time_machine
  14. JohnQSmith

    TCMD hides itself!

    Make sure your seat back and tray tables are locked in their upright positions.
  15. JohnQSmith

    New online help file wrong logo

    Here's the link from his post... Whats New in Version 28 Edit: A couple of CTRL-F5s on the page and now it looks like Scott's.
Back
Top