Is Perl faster than bash?

前端 未结 10 1995
刺人心
刺人心 2020-12-15 09:26

I have a bash script that cuts out a section of a logfile between 2 timestamps, but because of the size of the files, it takes quite a while to run.

If I were to rew

10条回答
  •  没有蜡笔的小新
    2020-12-15 10:04

    it depends on how your bash script is written. if you are not using awk to parse the log file, instead using bash's while read loop, then changing it to awk will improve the speed.

提交回复
热议问题