dokku ls
顯示以下內容,但是如何使用awk
獲取app-1470418443
的狀態?Grep/Awk:從列表中查找狀態
這樣magic command
返回running
。
-----> App Name Container Type Container Id Status
app-1470418443 web 78a092d176f1 running
example web 3b7803c49e04 running
example2 web a750f2b4be44 running
[grep for content after pattern]可能重複(http://stackoverflow.com/questions/10358547/grep- for-contents-after-pattern) – tripleee