Search Results

Search: Posts Made By: JoshCrosby
7,444
Posted By Don Cragun
I added magenta line numbers to the code above to...
I added magenta line numbers to the code above to make it easier to refer to lines for this discussion.

Since there is no condition on line 1, lines 1 through 9 will be executed for each line...
7,444
Posted By Don Cragun
I'm not sure I understand all of your...
I'm not sure I understand all of your requirements, but here is an awk script that I think does what you want. It looks long, but most of this proposed solution is comments rather than running code:...
7,444
Posted By Yoda
Not sure if this is what you want! Try this: ...
Not sure if this is what you want! Try this:
sort -t"|" products.txt | uniq -c | awk 'BEGIN{print "product","skew","count"}{split($2,A,"|"); print A[1],A[2],$1}' OFS='\t'
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy