Skip to content

Instantly share code, notes, and snippets.

@jftuga
Created February 14, 2018 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jftuga/932706f6c6e70508e1d856ba67d83014 to your computer and use it in GitHub Desktop.
Save jftuga/932706f6c6e70508e1d856ba67d83014 to your computer and use it in GitHub Desktop.
Split a Windows Path into separate lines
@echo off
rem see also freq at: https://github.com/jftuga/universe/blob/master/freq.cs
rem see also mawk at: https://www.klabaster.com/freeware.htm
rem eample: dir ... | mawk .. | freq | less
dir "%1" /s/b | mawk "BEGIN{FS='\\';OFS='\n'} {$1=$1}1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment