Permalink
Browse files

Continue awk annihilating rampage

  • Loading branch information...
1 parent 6ecc007 commit 25620194c64432f060ad308dd6bb979ca4219055 @richo richo committed Aug 27, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 contrib/gemset_snapshot
@@ -8,9 +8,10 @@ gems=($(gem list | sed 's#[\(|\)]##g' | sed 's#, #,#g' | \tr ' ' ';'))
for gem in "${gems[@]}" ; do
- name="$(echo $gem | awk -F';' '{print $1}')"
+ name="${gem%%;*}"
- versions=($(echo $gem | awk -F';' '{print $2}' | sed 's#,# #g'))
+ versions=${gem#*;}
+ versions=(${versions/,/ })
for version in "${versions[@]}" ; do

0 comments on commit 2562019

Please sign in to comment.