skip to main | skip to sidebar

Simon's useful command blog

Useful unix/grid commands that I use a lot but somehow forget.

Thursday, January 20, 2005

Command for cat'ing MadGraph events together

grep -v '#' file2|cat file1 - > file0

This will strip the header from file2 and create file0 as a sum of file1 and file2. It's probably best to have file1 as the bigger of the two files to join. The "-" takes the stdout from the grep as the input to the cat.
at 3:20 pm

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (1)
    • ►  January (1)
  • ►  2009 (2)
    • ►  November (1)
    • ►  August (1)
  • ►  2008 (4)
    • ►  October (1)
    • ►  September (1)
    • ►  June (1)
    • ►  March (1)
  • ►  2007 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (4)
    • ►  July (2)
  • ►  2006 (5)
    • ►  August (1)
    • ►  April (1)
    • ►  February (1)
    • ►  January (2)
  • ▼  2005 (13)
    • ►  November (2)
    • ►  September (2)
    • ►  July (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
    • ▼  January (3)
      • Perl script to resubmit failed madgraph jobs
      • Command for cat'ing MadGraph events together
      • Guardian Unlimited | Special reports | The victims...
  • ►  2004 (11)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  August (7)