Skip to content

Instantly share code, notes, and snippets.

@thatnerdjosh
Created November 7, 2019 07:21
Show Gist options
  • Select an option

  • Save thatnerdjosh/7c6e36b7c261bfb03962951cc335019f to your computer and use it in GitHub Desktop.

Select an option

Save thatnerdjosh/7c6e36b7c261bfb03962951cc335019f to your computer and use it in GitHub Desktop.

Revisions

  1. thatnerdjosh renamed this gist Nov 7, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. thatnerdjosh created this gist Nov 7, 2019.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    find <RELATIVE_PATH> -name '*' -exec file {} \; | grep -o -P '^.+: \w+ image' | sed 's/\:.*//' | sed 's| |\\ |g' > image_list
    cat image_list | xargs tar -czf images.tar.gz --files-from -