[Novalug] scripting

Miguel González Castaños miguel_3_gonzalez@yahoo.es
Mon Mar 2 15:58:32 EST 2009


Hi guys,

  I am trying to achieve a very simple thing.

  I am parsing a log file that has a bunch of lines like:

  Logically move media ID XU0479
  Logically move media ID XU0480

  to get the 5th word:

  more com_get* | grep Logically | awk '{print $5}' | sort > file

  However, I'd like to have those entries separated with spaces and no 
each entry in a different line. Any way to do that?

  Miguel
*
 
*
 





More information about the Novalug mailing list