Skip to content

Instantly share code, notes, and snippets.

@hkuno9000
Last active October 14, 2015 00:14
Show Gist options
  • Save hkuno9000/07e99a21f478d9cbcf9a to your computer and use it in GitHub Desktop.
Save hkuno9000/07e99a21f478d9cbcf9a to your computer and use it in GitHub Desktop.
print a environment variable separeted by ";"
@echo off
setlocal
set NAME=%1
if "%1"=="" set NAME=PATH
perl -e "print join(qq/\n/,split(q/;/,$ENV{%NAME%}));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment