Benchmark to compare the performance of either using sed
or tail
and cut
to modify input.
Running the following command will run the benchmark.
bash run_benchmarks.sh # or bash ./run_benchmarks.sh
The 2 following scripts achieve the same result of removing the first 2 lines of
input and then removing everything after (and including) the first space on each
remaining line. However, one uses sed
while the other uses a combo of tail
and cut
.