Skip to content

Instantly share code, notes, and snippets.

@brunogama
Created July 2, 2012 03:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunogama/3030898 to your computer and use it in GitHub Desktop.
Save brunogama/3030898 to your computer and use it in GitHub Desktop.
Delete pdf file if epub exist
for i in *pdf; do x=$(echo $i | sed 's/pdf/epub/g'); [ -f $x ] && rm $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment