comparison scripts/pid2name.sh @ 54:334d65dac778

add hash bangs to specify bash shell
author smith@nwoca.org
date Wed, 24 Feb 2016 18:23:42 +0000
parents 2e2b47145349
children aa2fd199ba56
comparison
equal deleted inserted replaced
53:f3773b50a88e 54:334d65dac778
1 #!/bin/bash
1 docker ps -q | xargs docker inspect --format '{{.State.Pid}} {{.Name}}' \ 2 docker ps -q | xargs docker inspect --format '{{.State.Pid}} {{.Name}}' \
2 | grep "^$1" | sed 's/^.*\///g' 3 | grep "^$1" | sed 's/^.*\///g'
3 4