{"action":"created","comment":{"url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/comments/111296710","pull_request_review_id":32531597,"id":111296710,"diff_hunk":"@@ -579,13 +618,39 @@ about them.\"\n > Louisa May Alcott, are in an argument.  Of the four sisters in the\n > book, Jo, Meg, Beth, and Amy, your friend thinks that Jo was the\n > most mentioned.  You, however, are certain it was Amy.  Luckily, you\n-> have a file `LittleWomen.txt` containing the full text of the novel.\n+> have a file `LittleWomen.txt` containing the full text of the novel\n+> (`data-shell/writing/data/LittleWomen.txt`).\n > Using a `for` loop, how would you tabulate the number of times each\n > of the four sisters is mentioned?\n >\n > Hint: one solution might employ\n > the commands `grep` and `wc` and a `|`, while another might utilize\n > `grep` options.\n+>\n+> > ## Solutions\n+> > ```\n+> > for sis in Jo Meg Beth Amy\n+> > do\n+> > \techo $sis:\n+> >\tgrep -ow $sis littlewomen.txt | wc -l\n+> > done\n+> > ```\n+> > {: .source}\n+> >\n+> > Alternative, slightly inferior solution:\n+> > ```\n+> > for sis in Jo Meg Beth Amy\n+> > do\n+> > \techo $sis:\n+> >\tgrep -ocw $sis LittleWomen.txt\n+> > done","path":"_episodes/07-find.md","position":130,"original_position":130,"commit_id":"0b83da0f5db408d6dd6a5ee8f6b7b819ef14bf8d","original_commit_id":"0b83da0f5db408d6dd6a5ee8f6b7b819ef14bf8d","user":{"login":"shwina","id":3190405,"avatar_url":"https://avatars3.githubusercontent.com/u/3190405?v=3","gravatar_id":"","url":"https://api.github.com/users/shwina","html_url":"https://github.com/shwina","followers_url":"https://api.github.com/users/shwina/followers","following_url":"https://api.github.com/users/shwina/following{/other_user}","gists_url":"https://api.github.com/users/shwina/gists{/gist_id}","starred_url":"https://api.github.com/users/shwina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shwina/subscriptions","organizations_url":"https://api.github.com/users/shwina/orgs","repos_url":"https://api.github.com/users/shwina/repos","events_url":"https://api.github.com/users/shwina/events{/privacy}","received_events_url":"https://api.github.com/users/shwina/received_events","type":"User","site_admin":false},"body":"I'd say let's leave out the inferior solution altogether. Any advantage to keeping it?","created_at":"2017-04-13T01:48:05Z","updated_at":"2017-04-13T01:50:22Z","html_url":"https://github.com/swcarpentry/shell-novice/pull/528#discussion_r111296710","pull_request_url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528","_links":{"self":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/comments/111296710"},"html":{"href":"https://github.com/swcarpentry/shell-novice/pull/528#discussion_r111296710"},"pull_request":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528"}}},"pull_request":{"url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528","id":108146797,"html_url":"https://github.com/swcarpentry/shell-novice/pull/528","diff_url":"https://github.com/swcarpentry/shell-novice/pull/528.diff","patch_url":"https://github.com/swcarpentry/shell-novice/pull/528.patch","issue_url":"https://api.github.com/repos/swcarpentry/shell-novice/issues/528","number":528,"state":"open","locked":false,"title":"Fix #518 for 07-find","user":{"login":"gcapes","id":12446270,"avatar_url":"https://avatars1.githubusercontent.com/u/12446270?v=3","gravatar_id":"","url":"https://api.github.com/users/gcapes","html_url":"https://github.com/gcapes","followers_url":"https://api.github.com/users/gcapes/followers","following_url":"https://api.github.com/users/gcapes/following{/other_user}","gists_url":"https://api.github.com/users/gcapes/gists{/gist_id}","starred_url":"https://api.github.com/users/gcapes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcapes/subscriptions","organizations_url":"https://api.github.com/users/gcapes/orgs","repos_url":"https://api.github.com/users/gcapes/repos","events_url":"https://api.github.com/users/gcapes/events{/privacy}","received_events_url":"https://api.github.com/users/gcapes/received_events","type":"User","site_admin":false},"body":"Provide solutions and modify exercises to use the example data in data-shell.\r\nAlso add files and directories where using existing files wasn't possible.","created_at":"2017-02-27T16:12:34Z","updated_at":"2017-04-13T01:50:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc5a177e43be42c4a5068278d260b180c4382895","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528/commits","review_comments_url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528/comments","review_comment_url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swcarpentry/shell-novice/issues/528/comments","statuses_url":"https://api.github.com/repos/swcarpentry/shell-novice/statuses/0b83da0f5db408d6dd6a5ee8f6b7b819ef14bf8d","head":{"label":"gcapes:518_07-find","ref":"518_07-find","sha":"0b83da0f5db408d6dd6a5ee8f6b7b819ef14bf8d","user":{"login":"gcapes","id":12446270,"avatar_url":"https://avatars1.githubusercontent.com/u/12446270?v=3","gravatar_id":"","url":"https://api.github.com/users/gcapes","html_url":"https://github.com/gcapes","followers_url":"https://api.github.com/users/gcapes/followers","following_url":"https://api.github.com/users/gcapes/following{/other_user}","gists_url":"https://api.github.com/users/gcapes/gists{/gist_id}","starred_url":"https://api.github.com/users/gcapes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcapes/subscriptions","organizations_url":"https://api.github.com/users/gcapes/orgs","repos_url":"https://api.github.com/users/gcapes/repos","events_url":"https://api.github.com/users/gcapes/events{/privacy}","received_events_url":"https://api.github.com/users/gcapes/received_events","type":"User","site_admin":false},"repo":{"id":82198054,"name":"shell-novice","full_name":"gcapes/shell-novice","owner":{"login":"gcapes","id":12446270,"avatar_url":"https://avatars1.githubusercontent.com/u/12446270?v=3","gravatar_id":"","url":"https://api.github.com/users/gcapes","html_url":"https://github.com/gcapes","followers_url":"https://api.github.com/users/gcapes/followers","following_url":"https://api.github.com/users/gcapes/following{/other_user}","gists_url":"https://api.github.com/users/gcapes/gists{/gist_id}","starred_url":"https://api.github.com/users/gcapes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcapes/subscriptions","organizations_url":"https://api.github.com/users/gcapes/orgs","repos_url":"https://api.github.com/users/gcapes/repos","events_url":"https://api.github.com/users/gcapes/events{/privacy}","received_events_url":"https://api.github.com/users/gcapes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gcapes/shell-novice","description":"Software Carpentry introduction to the shell for novices.","fork":true,"url":"https://api.github.com/repos/gcapes/shell-novice","forks_url":"https://api.github.com/repos/gcapes/shell-novice/forks","keys_url":"https://api.github.com/repos/gcapes/shell-novice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gcapes/shell-novice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gcapes/shell-novice/teams","hooks_url":"https://api.github.com/repos/gcapes/shell-novice/hooks","issue_events_url":"https://api.github.com/repos/gcapes/shell-novice/issues/events{/number}","events_url":"https://api.github.com/repos/gcapes/shell-novice/events","assignees_url":"https://api.github.com/repos/gcapes/shell-novice/assignees{/user}","branches_url":"https://api.github.com/repos/gcapes/shell-novice/branches{/branch}","tags_url":"https://api.github.com/repos/gcapes/shell-novice/tags","blobs_url":"https://api.github.com/repos/gcapes/shell-novice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gcapes/shell-novice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gcapes/shell-novice/git/refs{/sha}","trees_url":"https://api.github.com/repos/gcapes/shell-novice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gcapes/shell-novice/statuses/{sha}","languages_url":"https://api.github.com/repos/gcapes/shell-novice/languages","stargazers_url":"https://api.github.com/repos/gcapes/shell-novice/stargazers","contributors_url":"https://api.github.com/repos/gcapes/shell-novice/contributors","subscribers_url":"https://api.github.com/repos/gcapes/shell-novice/subscribers","subscription_url":"https://api.github.com/repos/gcapes/shell-novice/subscription","commits_url":"https://api.github.com/repos/gcapes/shell-novice/commits{/sha}","git_commits_url":"https://api.github.com/repos/gcapes/shell-novice/git/commits{/sha}","comments_url":"https://api.github.com/repos/gcapes/shell-novice/comments{/number}","issue_comment_url":"https://api.github.com/repos/gcapes/shell-novice/issues/comments{/number}","contents_url":"https://api.github.com/repos/gcapes/shell-novice/contents/{+path}","compare_url":"https://api.github.com/repos/gcapes/shell-novice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gcapes/shell-novice/merges","archive_url":"https://api.github.com/repos/gcapes/shell-novice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gcapes/shell-novice/downloads","issues_url":"https://api.github.com/repos/gcapes/shell-novice/issues{/number}","pulls_url":"https://api.github.com/repos/gcapes/shell-novice/pulls{/number}","milestones_url":"https://api.github.com/repos/gcapes/shell-novice/milestones{/number}","notifications_url":"https://api.github.com/repos/gcapes/shell-novice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gcapes/shell-novice/labels{/name}","releases_url":"https://api.github.com/repos/gcapes/shell-novice/releases{/id}","deployments_url":"https://api.github.com/repos/gcapes/shell-novice/deployments","created_at":"2017-02-16T15:56:11Z","updated_at":"2017-02-16T15:56:14Z","pushed_at":"2017-03-07T14:20:21Z","git_url":"git://github.com/gcapes/shell-novice.git","ssh_url":"git@github.com:gcapes/shell-novice.git","clone_url":"https://github.com/gcapes/shell-novice.git","svn_url":"https://github.com/gcapes/shell-novice","homepage":"http://swcarpentry.github.io/shell-novice/","size":4825,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"swcarpentry:gh-pages","ref":"gh-pages","sha":"8918cf2fbabaa982dfd28e1049efc7cb9e1fd540","user":{"login":"swcarpentry","id":2238358,"avatar_url":"https://avatars3.githubusercontent.com/u/2238358?v=3","gravatar_id":"","url":"https://api.github.com/users/swcarpentry","html_url":"https://github.com/swcarpentry","followers_url":"https://api.github.com/users/swcarpentry/followers","following_url":"https://api.github.com/users/swcarpentry/following{/other_user}","gists_url":"https://api.github.com/users/swcarpentry/gists{/gist_id}","starred_url":"https://api.github.com/users/swcarpentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swcarpentry/subscriptions","organizations_url":"https://api.github.com/users/swcarpentry/orgs","repos_url":"https://api.github.com/users/swcarpentry/repos","events_url":"https://api.github.com/users/swcarpentry/events{/privacy}","received_events_url":"https://api.github.com/users/swcarpentry/received_events","type":"Organization","site_admin":false},"repo":{"id":25592861,"name":"shell-novice","full_name":"swcarpentry/shell-novice","owner":{"login":"swcarpentry","id":2238358,"avatar_url":"https://avatars3.githubusercontent.com/u/2238358?v=3","gravatar_id":"","url":"https://api.github.com/users/swcarpentry","html_url":"https://github.com/swcarpentry","followers_url":"https://api.github.com/users/swcarpentry/followers","following_url":"https://api.github.com/users/swcarpentry/following{/other_user}","gists_url":"https://api.github.com/users/swcarpentry/gists{/gist_id}","starred_url":"https://api.github.com/users/swcarpentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swcarpentry/subscriptions","organizations_url":"https://api.github.com/users/swcarpentry/orgs","repos_url":"https://api.github.com/users/swcarpentry/repos","events_url":"https://api.github.com/users/swcarpentry/events{/privacy}","received_events_url":"https://api.github.com/users/swcarpentry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swcarpentry/shell-novice","description":"Software Carpentry introduction to the shell for novices.","fork":false,"url":"https://api.github.com/repos/swcarpentry/shell-novice","forks_url":"https://api.github.com/repos/swcarpentry/shell-novice/forks","keys_url":"https://api.github.com/repos/swcarpentry/shell-novice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swcarpentry/shell-novice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swcarpentry/shell-novice/teams","hooks_url":"https://api.github.com/repos/swcarpentry/shell-novice/hooks","issue_events_url":"https://api.github.com/repos/swcarpentry/shell-novice/issues/events{/number}","events_url":"https://api.github.com/repos/swcarpentry/shell-novice/events","assignees_url":"https://api.github.com/repos/swcarpentry/shell-novice/assignees{/user}","branches_url":"https://api.github.com/repos/swcarpentry/shell-novice/branches{/branch}","tags_url":"https://api.github.com/repos/swcarpentry/shell-novice/tags","blobs_url":"https://api.github.com/repos/swcarpentry/shell-novice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swcarpentry/shell-novice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swcarpentry/shell-novice/git/refs{/sha}","trees_url":"https://api.github.com/repos/swcarpentry/shell-novice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swcarpentry/shell-novice/statuses/{sha}","languages_url":"https://api.github.com/repos/swcarpentry/shell-novice/languages","stargazers_url":"https://api.github.com/repos/swcarpentry/shell-novice/stargazers","contributors_url":"https://api.github.com/repos/swcarpentry/shell-novice/contributors","subscribers_url":"https://api.github.com/repos/swcarpentry/shell-novice/subscribers","subscription_url":"https://api.github.com/repos/swcarpentry/shell-novice/subscription","commits_url":"https://api.github.com/repos/swcarpentry/shell-novice/commits{/sha}","git_commits_url":"https://api.github.com/repos/swcarpentry/shell-novice/git/commits{/sha}","comments_url":"https://api.github.com/repos/swcarpentry/shell-novice/comments{/number}","issue_comment_url":"https://api.github.com/repos/swcarpentry/shell-novice/issues/comments{/number}","contents_url":"https://api.github.com/repos/swcarpentry/shell-novice/contents/{+path}","compare_url":"https://api.github.com/repos/swcarpentry/shell-novice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swcarpentry/shell-novice/merges","archive_url":"https://api.github.com/repos/swcarpentry/shell-novice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swcarpentry/shell-novice/downloads","issues_url":"https://api.github.com/repos/swcarpentry/shell-novice/issues{/number}","pulls_url":"https://api.github.com/repos/swcarpentry/shell-novice/pulls{/number}","milestones_url":"https://api.github.com/repos/swcarpentry/shell-novice/milestones{/number}","notifications_url":"https://api.github.com/repos/swcarpentry/shell-novice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swcarpentry/shell-novice/labels{/name}","releases_url":"https://api.github.com/repos/swcarpentry/shell-novice/releases{/id}","deployments_url":"https://api.github.com/repos/swcarpentry/shell-novice/deployments","created_at":"2014-10-22T16:46:45Z","updated_at":"2017-03-30T21:25:50Z","pushed_at":"2017-04-03T21:31:19Z","git_url":"git://github.com/swcarpentry/shell-novice.git","ssh_url":"git@github.com:swcarpentry/shell-novice.git","clone_url":"https://github.com/swcarpentry/shell-novice.git","svn_url":"https://github.com/swcarpentry/shell-novice","homepage":"http://swcarpentry.github.io/shell-novice/","size":3967,"stargazers_count":62,"watchers_count":62,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":342,"mirror_url":null,"open_issues_count":51,"forks":342,"open_issues":51,"watchers":62,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528"},"html":{"href":"https://github.com/swcarpentry/shell-novice/pull/528"},"issue":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/issues/528"},"comments":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/swcarpentry/shell-novice/statuses/0b83da0f5db408d6dd6a5ee8f6b7b819ef14bf8d"}}}}
{"actor":{"display_login":"shwina"}}