Skip to content

Instantly share code, notes, and snippets.

@zeayes
Last active December 30, 2015 05:29
Show Gist options
  • Save zeayes/7782622 to your computer and use it in GitHub Desktop.
Save zeayes/7782622 to your computer and use it in GitHub Desktop.
some useful shell scripts
#!/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