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
$ echo fish >a.c | |
$ grep -r --include=\*.{c,h} fish . | |
./a.c:fish | |
$ grep -r --include=\*.{c,h} fish . | |
./a.c:fish | |
grep doesn't like {c,h} | |
$ grep -r --include="*.{c,h}" fish . | |
$ grep -r --include="*.[ch]" fish . |
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/bash | |
# atlassian-heap-dump.sh - dump a heap using GDB for a crashed application | |
# Accepts a single argument: the PID of the JVM | |
# Author: James Gray (jgray@atlassian.com) | |
# Copyright Atlassian P/L | |
# License: MIT | |
# Are we root? | |
if [ $UID -ne 0 ]; then |