LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Rather basic realization on scripting logic, it may be often better to let C programs do "excessive" work than trying to spare them w/ Bash

Posted 06-01-2023 at 12:29 PM by the dsc (linux-related notes)
Updated 06-01-2023 at 12:34 PM by the dsc

"C" stuff will be much faster than scripts, so sometimes even a "dumb" use of a C program will be more optimal (take less time) than trying to sort out a more minimal task for the C program with bash.

Like
Code:
 grep -h -m 1 THING-TO-GREP index_*
versus

Code:
 < ... some bash-script logic that tries to figure out the most likely index_NNNN files
 so grep has only to work with a few, not all ... > 

 grep
...
Member
Posted in Uncategorized
Views 215 Comments 1 the dsc is offline

  



All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration