{"action":"created","issue":{"url":"https://api.github.com/repos/sr320/course-fish546-2016/issues/97","repository_url":"https://api.github.com/repos/sr320/course-fish546-2016","labels_url":"https://api.github.com/repos/sr320/course-fish546-2016/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/sr320/course-fish546-2016/issues/97/comments","events_url":"https://api.github.com/repos/sr320/course-fish546-2016/issues/97/events","html_url":"https://github.com/sr320/course-fish546-2016/issues/97","id":192968322,"number":97,"title":"appending `find` results to a bash array","user":{"login":"mfisher5","id":22527689,"avatar_url":"https://avatars.githubusercontent.com/u/22527689?v=3","gravatar_id":"","url":"https://api.github.com/users/mfisher5","html_url":"https://github.com/mfisher5","followers_url":"https://api.github.com/users/mfisher5/followers","following_url":"https://api.github.com/users/mfisher5/following{/other_user}","gists_url":"https://api.github.com/users/mfisher5/gists{/gist_id}","starred_url":"https://api.github.com/users/mfisher5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfisher5/subscriptions","organizations_url":"https://api.github.com/users/mfisher5/orgs","repos_url":"https://api.github.com/users/mfisher5/repos","events_url":"https://api.github.com/users/mfisher5/events{/privacy}","received_events_url":"https://api.github.com/users/mfisher5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-01T21:33:15Z","updated_at":"2016-12-01T22:13:57Z","closed_at":null,"body":"I'm working on part of a simple bash script to append results from a `find` expression into a bash array titled `file_array`. When I run the `find` expression by itself, it returns all files in the folder that end in \".fq.gz\" -- but when I run the find expression and then append to an array, it only appends the first file in the folder. \r\nHere is the code: \r\n\r\n(1) `find` expression, printing to command line\r\n`find . -name \"*fq.gz\"`\r\n\r\n(2) `find` results into bash array\r\n`read -a file_array <<< \"$(find . -name \"*.fq.gz\")\"`\r\n`echo ${#file_array[@]}` #to print out length of array; prints out `1`\r\n\r\nI've tried looking through stack overflow, but I can't seem to find anything that explains why it is not working!"},"comment":{"url":"https://api.github.com/repos/sr320/course-fish546-2016/issues/comments/264312086","html_url":"https://github.com/sr320/course-fish546-2016/issues/97#issuecomment-264312086","issue_url":"https://api.github.com/repos/sr320/course-fish546-2016/issues/97","id":264312086,"user":{"login":"mfisher5","id":22527689,"avatar_url":"https://avatars.githubusercontent.com/u/22527689?v=3","gravatar_id":"","url":"https://api.github.com/users/mfisher5","html_url":"https://github.com/mfisher5","followers_url":"https://api.github.com/users/mfisher5/followers","following_url":"https://api.github.com/users/mfisher5/following{/other_user}","gists_url":"https://api.github.com/users/mfisher5/gists{/gist_id}","starred_url":"https://api.github.com/users/mfisher5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfisher5/subscriptions","organizations_url":"https://api.github.com/users/mfisher5/orgs","repos_url":"https://api.github.com/users/mfisher5/repos","events_url":"https://api.github.com/users/mfisher5/events{/privacy}","received_events_url":"https://api.github.com/users/mfisher5/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T22:13:57Z","updated_at":"2016-12-01T22:13:57Z","body":"That worked! Thank you!"}}
{"actor":{"display_login":"mfisher5"}}