Skip to content

Instantly share code, notes, and snippets.

@chulkilee
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chulkilee/89d8428d7808af6cde7a to your computer and use it in GitHub Desktop.
Save chulkilee/89d8428d7808af6cde7a to your computer and use it in GitHub Desktop.
EOL
#!/bin/sh
sed -i '' -e '$a\' $1
#!/bin/sh
find . \
-type f \
-exec sh -c '[ "$1" == "$(grep -Il "" "$1")" ] && [ "0a" != "$(xxd -ps -l 1 -s -1 "$1" 2> /dev/null)" ] && echo "$1"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment