in reply to Listing URLs to stdout

Amazing you'd have to go through that much horsing around in Windows. In Unix, I can't tell if that's much different from simply:
grep '^URL=' *.url
with no code to write. {grin}

Well, ok, a little reduction:

perl -ne 's/^URL=// and print' *.url

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Listing URLs to stdout
by Aristotle (Chancellor) on Jan 10, 2005 at 22:50 UTC

    Golf:

    perl -pe's/^URL=|.*//s' *.url

    Unix golf:

    sed 's/^URL=//;t;d' *.url

    Makeshifts last the longest.

      You perhaps missed the handicap of playing on greens designed in Redmond WA? The above sadly produces an error message: "'.*' is not recognized as an internal or external command, operable program or batch file."

      --hsm

      "Never try to teach a pig to sing...it wastes your time and it annoys the pig."

        You have to use the double quotes around the script on windows.

        /J\

Re^2: Listing URLs to stdout
by hsmyers (Canon) on Jan 10, 2005 at 00:48 UTC
    Thank you for reminding me that I keep forgetting to use grep for something other than project maintenance! Like wise for the one liner!!

    --hsm

    "Never try to teach a pig to sing...it wastes your time and it annoys the pig."
Re^2: Listing URLs to stdout
by jfroebe (Parson) on Jan 13, 2005 at 16:54 UTC

    Hi Randal,

    Well, that may have been true before, but many of the GNU utilities have win32 native builds. Take a look at http://unxutils.sourceforge.net to get an idea.

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1