title: Possible to grep file for pattern, then sort found lines according to portion of pattern?
body: <p>I am storing a number of individually serialized PHP arrays to a file. Each line of the file contains one serialized array. For example:</p>
  
  <pre><code>a:2:{s:4:"name";s:8:"John Doe";s:3:"age";s:2:"20";}
  a:2:{s:4:"name";s:8:"Jane Doe";s:3:"age";s:2:"15";}
  a:2:{s:4:"name";s:12:"Steven Tyler";s:3:"age";s:2:"35";}
  a:2:{s:4:"name";s:12:"Jim Morrison";s:3:"age";s:2:"25";}
  a:2:{s:4:"name";s:13:"Apple Paltrow";s:3:"age";s:2:"75";}
  a:2:{s:4:"name";s:12:"Drew Nickels";s:3:"age";s:2:"34";}
  a:2:{s:4:"name";s:11:"Jason Proop";s:3:"age";s:2:"36";}
  </code></pre>
  
  <p>Here is my question:</p>
  
  <p>Is it possible to grep this file for the following pattern: <code>"name"*"*"</code></p>
  
  <p>Afterwards, I would like to sort the lines that are found based on the contents of the second wildcard.</p>