LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 06:02 AM.

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