Skip to content

Instantly share code, notes, and snippets.

@majidlahmidi
Last active April 21, 2019 22:55
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 majidlahmidi/76b50b24f424904f9f1e14e5f4e41ca1 to your computer and use it in GitHub Desktop.
Save majidlahmidi/76b50b24f424904f9f1e14e5f4e41ca1 to your computer and use it in GitHub Desktop.
commandes linux
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