Last active
April 21, 2019 22:55
-
-
Save majidlahmidi/76b50b24f424904f9f1e14e5f4e41ca1 to your computer and use it in GitHub Desktop.
commandes linux
This file contains 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
Replace text in files | |
sed -i 's/old-word/new-word/g' *.txt | |
List files modified in specific commit (g67h89) | |
git diff-tree --no-commit-id --name-only -r g67h89 | |
List files modified between two commit | |
git diff --name-only -r 992e585662b 3754e20cce4 | |
Import a sql table from csv file | |
mysqlimport -u mysql_user_name -p --local --fields-enclosed-by='"' --fields-terminated-by=';' --lines-terminated-by="\n" database_name table_name.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment