Skip to content

Instantly share code, notes, and snippets.

View daqing's full-sized avatar

David Zhang daqing

View GitHub Profile
#! /bin/bash
# git init configs for Kinch Zhang
# username and email address
git config --global user.name "Kinch Zhang"
git config --global user.email [email protected]
# SVN-like shortcuts
git config --global alias.st status
#! /bin/bash
#
# File: check_status.sh
# Author: Kinch Zhang <[email protected]> with help from ChaoQian Xu <[email protected]>
# Usage: $ check_status.sh [HOSTS ...]
#
function check()
{
ip=`ping $1 | head -n 1| awk '{print $3}'`
#! /bin/bash
find "$4" -depth -name "$3" -exec grep -Hni "$2" {} \;