Created
September 28, 2017 02:33
-
-
Save kilfu0701/d34768aab419a4ff618b283d2738c4e9 to your computer and use it in GitHub Desktop.
some useful command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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