{"action":"reopened","issue":{"url":"https://api.github.com/repos/tldr-pages/tldr/issues/1032","repository_url":"https://api.github.com/repos/tldr-pages/tldr","labels_url":"https://api.github.com/repos/tldr-pages/tldr/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/tldr-pages/tldr/issues/1032/comments","events_url":"https://api.github.com/repos/tldr-pages/tldr/issues/1032/events","html_url":"https://github.com/tldr-pages/tldr/issues/1032","id":174544495,"number":1032,"title":"du: add pattern matching example","user":{"login":"waldyrious","id":478237,"avatar_url":"https://avatars.githubusercontent.com/u/478237?v=3","gravatar_id":"","url":"https://api.github.com/users/waldyrious","html_url":"https://github.com/waldyrious","followers_url":"https://api.github.com/users/waldyrious/followers","following_url":"https://api.github.com/users/waldyrious/following{/other_user}","gists_url":"https://api.github.com/users/waldyrious/gists{/gist_id}","starred_url":"https://api.github.com/users/waldyrious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldyrious/subscriptions","organizations_url":"https://api.github.com/users/waldyrious/orgs","repos_url":"https://api.github.com/users/waldyrious/repos","events_url":"https://api.github.com/users/waldyrious/events{/privacy}","received_events_url":"https://api.github.com/users/waldyrious/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tldr-pages/tldr/labels/page%20edit","name":"page edit","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-01T14:52:18Z","updated_at":"2016-09-09T07:24:28Z","closed_at":null,"body":"Get the total size of .jpg files at any depth within the current directory: `du -ch -- **/*.jpg | grep total$` ([source](http://unix.stackexchange.com/a/41635/30336)).\r\n\r\nThis [requires bash 4.0](http://unix.stackexchange.com/questions/34024/what-is-the-tool-that-allows-me-to-specify-arbitrary-directories-using#comment46158_34026), so I can't test it at the moment in OS X (`GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)`) -- if I try this the `**` does the same as `*`, i.e. it only matches a single depth level.\r\n\r\nIf someone can confirm the multi-level `**` behavior for this example in a shell that supports it, please say so."}}
{"actor":{"display_login":"waldyrious"}}