Skip to content

Instantly share code, notes, and snippets.

@steve-kasica
Created October 28, 2015 22:33
Show Gist options
  • Save steve-kasica/13f9d895dc04e7345b1f to your computer and use it in GitHub Desktop.
Save steve-kasica/13f9d895dc04e7345b1f to your computer and use it in GitHub Desktop.
Symlink only PDFs
#!/bin/bash
# Create symlink for only PDFs or really any filetype in a directory with find and xargs
find /some/directory/ -name \*.pdf -print0 | xargs -0 -I {} ln -s {} .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment