Skip to content

Instantly share code, notes, and snippets.

@kilfu0701
Created September 28, 2017 02:33
Show Gist options
  • Save kilfu0701/d34768aab419a4ff618b283d2738c4e9 to your computer and use it in GitHub Desktop.
Save kilfu0701/d34768aab419a4ff618b283d2738c4e9 to your computer and use it in GitHub Desktop.
some useful command
[DELETE]
# delete files with numbers
for i in {101..151}; do rm -f "file_$i.json"; done
[FILE]
# check file infomations
file -I test.png
# sort by modified time
find . -printf "%T@ %Tc %p\n" | sort -n
# diff
diff -ENwbur file1 file2 | colordiff | less -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment