Skip to content

Instantly share code, notes, and snippets.

@arthurattwell
Last active January 21, 2020 12:23
Show Gist options
  • Save arthurattwell/fd1b32b566a478db19f6d592071119f6 to your computer and use it in GitHub Desktop.
Save arthurattwell/fd1b32b566a478db19f6d592071119f6 to your computer and use it in GitHub Desktop.
Create a files.txt list for an Electric Book project's update folder

Create a files.txt list

Windows

dir /a-D /S /B > files.txt

  • To remove .git folder, replace: ^\.git\\.*\n
  • To remove sass-cache, replace: ^\.sass-cache\\.*\n
  • To remove node_modules, replace: ^node_modules\\.*\n
  • To remove _site folder, replace: ^_site\\.*\n
  • To remove _output folder, replace: ^_output\\.*\n
  • To replace backslashes with forward slashes, replace: \\ with /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment