Last active
August 29, 2015 14:02
-
-
Save dantewang/e75af74d97f266d16fdd to your computer and use it in GitHub Desktop.
One-line bash commands
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
# Bulk replace string in files: | |
sed -i "s/oldString/newString/g" `grep oldString -rl /path` | |
# Extract Tomcat pid from jps output | |
jps -m | grep Bootstrap | grep -o -E "[[:digit:]]*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment