Skip to content

Instantly share code, notes, and snippets.

@goozbach
Created December 19, 2009 17:49
Show Gist options
  • Select an option

  • Save goozbach/260165 to your computer and use it in GitHub Desktop.

Select an option

Save goozbach/260165 to your computer and use it in GitHub Desktop.
+blog 2009-12-12 test this 12 @foob
+personalprojects 2009-12-13 test this 13
+testing 2009-12-14 test this 14
+again 2009-12-15 test this 15 +testing sdflkajdsflkj sdlkf hello
+dood 2009-12-16 test this 16 +testing foobarbaz testing foob again
+devcycle 2009-12-17 test this 17
+blog 2009-12-12 test this 12 @foob
+personalprojects 2009-12-13 test this 13
+testing 2009-12-14 test this 14
+again +testing 2009-12-15 test this 15 sdflkajdsflkj sdlkf hello
+dood +testing 2009-12-16 test this 16 foobarbaz testing foob again
+devcycle 2009-12-17 test this 17
#!/bin/bash
cat source | sed -e :a -e 's/\(.*\)\([^ ]*+[^ ]\+\)\(.*\)/\2 \1 \3/g' | grep --color '[^ ]*+[^ ]\+'
2009-12-12 test this 12 +blog @foob
2009-12-13 test this 13 +personalprojects
2009-12-14 test this 14 +testing
2009-12-15 test this 15 +testing sdflkajdsflkj sdlkf hello +again
2009-12-16 test this 16 +testing foobarbaz testing foob +dood again
2009-12-17 test this 17 +devcycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment