LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 09-12-2019, 09:21 AM   #16
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,478

Rep: Reputation: 154Reputation: 154

Quote:
Originally Posted by dc.901 View Post
Is that running awk twice? Second time to get the count?
Maybe, redirect output to a file first time then do wc -l <file>?
If awk is running twice -- the second time to get a occurence count from the first awk's output -- it doesn't seem like any parallelism is actually possible. And going to a disk file would actually slow things down a bit---stashing the results of the first awk into an environment variable and echoing that into the second awk would be faster. Plus... you eventually have to clean up those intermediate disk files.
 
1 members found this post helpful.
Old 09-12-2019, 12:24 PM   #17
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,170
Blog Entries: 11

Rep: Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091
@wikigeek: Deleting your questions and other relevant posts is not acceptable behavior at LQ.

Your questions and reply posts are all part of the public, growing knowledge base which makes the LQ forums useful to yourself and others.

When you post a question you are asking others to volunteer their own time to formulate a response, and to contribute their knowledge for your own benefit and that of future visitors.

Deleting your own questions and posts is disrespectful of the time others have generously given to help you, and removes the context of their replies rendering the thread useless to future visitors.

To help keep the quality of questions and resulting answers useful for everyone, please review the Site FAQ, and in particular the Welcome page and the links it provides when posting questions in future.

This thread is now closed, with thanks to all who contributed usefully.
 
1 members found this post helpful.
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script with Menu and sub menu and in sub menu execute another shell script SHWE Linux - Newbie 9 11-03-2018 06:19 PM
LXer: Nvidia and ARM: It's a parallel, parallel, parallel world LXer Syndicated Linux News 0 03-21-2013 06:10 PM
[SOLVED] Executing a command in parallel | GNU parallel or xargs the_gripmaster AIX 3 05-08-2012 07:41 AM
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
How to execute two shell scripts in parallel Pavitra.v Linux - General 4 09-16-2006 05:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:11 AM.

Main Menu
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration