Search Results

Search: Posts Made By: Aurimas
3,335
Posted By RudiC
That's because of the different lengths of $6 (1...
That's because of the different lengths of $6 (1 or 2) resulting in a different FS count after it, so sometimes "ALA" shows up in $8, sometimes in $9, and the fields to follow as well.
3,335
Posted By Scrutinizer
Hi, The awk statement when you just leave...
Hi,

The awk statement when you just leave out -F"[ ]" .
awk -v SRCH="$AAA" '$0 ~ SRCH && !OCC[$6]++ {CNT++ } END {print CNT+0}' "$i"
renders 8


I would suggest slightly modifying it to...
3,382
Posted By RudiC
You definitely need to split your pipeline into...
You definitely need to split your pipeline into single commands and analyse each one of them separately in order to identify what is going wrong. I don't know the voronota command, what it requires,...
4,315
Posted By RudiC
/.../ in awk is a regex constant, so it tries to...
/.../ in awk is a regex constant, so it tries to match two uppercase "A" (AA)in your above case. Drop the slashes to match the contents of variable AA.
4,315
Posted By Scrutinizer
Hi Aurimas, Single quotes are ' characters....
Hi Aurimas,

Single quotes are ' characters. Within single quotes SHELL variables are not expanded, that only happens within double quotes ( " )

awk uses the -v var=value option as a way to pass...
Showing results 1 to 5 of 5

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