This file contains hidden or 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
sudo tcpdump -ntlp port 514 2>/dev/null| perl -ne 'next unless /^IP (.*).[0-9]* >/; print $1,$/ if !$d{$1}++' |
This file contains hidden or 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 | |
# Usage: jgrep foo | |
# Searches all java files under the current directory | |
grep -i "$*" `find . -name '*.java'` |
This file contains hidden or 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 | |
# Usage: findjar <class name or pattern> <directories> | |
# Example: findjar StringUtils . | |
class=$1 | |
shift | |
for f in `find $* -type f -name "*.jar"`; do | |
match=$(jar tf $f 2>/dev/null| grep $class); |
NewerOlder