Hey everyone,
I'm looking to gather values from the /proc/pid/stat file for any given PID and store these values in a file for later use. I usually work with Bash and Python, but I'm wondering if they are efficient enough for this task. I've thought about using Perl but haven't dabbled in it yet. What language would you suggest for this job? Appreciate any insights you have!
2 Answers
When it comes to performance, the I/O process usually takes the longest time, so feel free to use whichever language you're comfortable with. You can always optimize later if you notice any real performance issues.
If you’re considering languages, give Awk a shot. It’s great for this kind of text processing and should be pretty efficient!
Definitely, Awk is super handy for quick text parsing!