-
-
Save nobiki/51416e5979134e8c112a106e85bb37f2 to your computer and use it in GitHub Desktop.
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/sh | |
status="$1" | |
ext="$2" | |
if [ '!' = "${1}" ]; then | |
status='\!' | |
elif [ '' = "${1}" ]; then | |
status='' | |
fi | |
if [ '' = "${2}" ]; then | |
ext='*' | |
fi | |
if [ '' = "${status}" ]; then | |
svn st | awk '$2~/\.'${ext}'$/{print $2}' | |
else | |
svn st | awk '$1=="'${status}'"&&$2~/\.('${ext}')$/{print $2}' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment