fork download
BEGIN { FS="[ \\[]" } 
{ if ( gensub("-","","g",$1) < gensub("-","","g",$7) ) { $7 = $1 }
  $7 = "[" $7
  print
}
Success #stdin #stdout 0.01s 4232KB
stdin
2012-01-30 12:41:06,214 app10 device INFO [2013-01-30 12:40:46,214] info1 info2 info3 ...
2012-01-30 12:41:06,214 app10 device INFO [2011-01-30 12:40:46,214] info1 info2 info3 ...
stdout
2012-01-30 12:41:06,214 app10 device INFO  [2012-01-30 12:40:46,214] info1 info2 info3 ...
2012-01-30 12:41:06,214 app10 device INFO  [2011-01-30 12:40:46,214] info1 info2 info3 ...