Search Results

Search: Posts Made By: jaggy
1,616
Posted By RudiC
You were almost there. A small adaption to your...
You were almost there. A small adaption to your code snippet yields the desired result:awk '{n=split($1,s,"|");for (i=1;i<=n;i++) {if (s[i]) {$1=s[i];print }}}' OFS="\t" file
store_id Age_21_25 ...
1,064
Posted By RudiC
Your spec is a bit inconsistent, a delimiter is...
Your spec is a bit inconsistent, a delimiter is missing between "store" and "Dollar" in the header; and also the delimiter count at line end differs between header and data lines. However, tryawk...
Showing results 1 to 2 of 2

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