Skip to content

Instantly share code, notes, and snippets.

@teffalump
Created January 2, 2015 20:42
Show Gist options
  • Select an option

  • Save teffalump/9d733e517934ad58cbb0 to your computer and use it in GitHub Desktop.

Select an option

Save teffalump/9d733e517934ad58cbb0 to your computer and use it in GitHub Desktop.

Revisions

  1. teffalump created this gist Jan 2, 2015.
    2 changes: 2 additions & 0 deletions flatten.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/usr/bin/bash
    find "$1" -mindepth 1 -maxdepth 1 -print0 | xargs -0 mv -t .