Last active
December 30, 2015 05:29
-
-
Save zeayes/7782622 to your computer and use it in GitHub Desktop.
some useful shell scripts
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
#!/bin/bash | |
# 对第三列求和 | |
awk -F "," '{sum+=$3} END {print sum}' test.csv | |
# 对第三列匹配求和 | |
awk -F "," ' $3 ~ /^CG/ {sum+=$5} END { print sum}' test.csv | |
# git clone | |
env GIT_SSL_NO_VERIFY=true git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment