Skip to main content
1 of 5
Joseph R.
  • 40.5k
  • 8
  • 113
  • 146

If the number of data points (I'm assuming) in each of your experiments (again, I'm assuming) is always 4, you can use this Perl snippet:

perl -ple '$. % 4 == 1 and print "Exp", ++$i' your_file
Joseph R.
  • 40.5k
  • 8
  • 113
  • 146