Skip to content

Commit

Permalink
initial checkin of helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kans committed Aug 31, 2014
1 parent e1c7fc1 commit 2e136ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions join-into-groups-of
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
xargs -n "$@" echo |
sed 's/ /,/g'
5 changes: 5 additions & 0 deletions sort-uniq-count-rank
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
sort -f |
uniq -i -c |
perl -pe 's/\s*(\d+)\s(.+)/$1\t$2/' |
sort -t ' ' -k 1,1nr -k 2f
4 changes: 4 additions & 0 deletions word-at-a-time
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
sed 's/[^a-zA-Z0-9]/ /g' |
tr 'A-Z' 'a-z' |
xargs -n 1

0 comments on commit 2e136ef

Please sign in to comment.