Skip to content

Instantly share code, notes, and snippets.

@mkakh
Created September 5, 2020 09:42
Show Gist options
  • Save mkakh/199f02b08877c55ef37114fbed72dc19 to your computer and use it in GitHub Desktop.
Save mkakh/199f02b08877c55ef37114fbed72dc19 to your computer and use it in GitHub Desktop.
#!/bin/sh
DPTDIR="$HOME/dptrp1"
TARGETDIR="$DPTDIR/M1/Papers"
for i in ~/DocSync/*.pdf; do
if [ -z "`find $DPTDIR -name \"${i##*/}\"`" ]; then
cp -v "$i" $TARGETDIR
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment