Search Results

Search: Posts Made By: kartikirans
1,303
Posted By vgersh99
something along these lines: awk -F'|'...
something along these lines:

awk -F'|' '{for(i=1;i<=NF;i++) a[i]+=$i} END{for(i=1; i in a;i++) printf("Column %d: %d\n", i, a[i])}' myFile
2,135
Posted By neutronscott
something like: awk -F\| '!a[$1]++ {...
something like:


awk -F\| '!a[$1]++ { print $1 > "dis_col1.txt"; } !b[$2]++ { print $2 > "dis_col2.txt"; } END { print NR; }' file
2,135
Posted By Scrutinizer
Try: awk -F\| '!A[$1]++{c1++}; !B[$2]++{c2++}...
Try:
awk -F\| '!A[$1]++{c1++}; !B[$2]++{c2++} END{print c1, c2, NR}' file
17,716
Posted By Don Cragun
Without knowing what OS you're using we can only...
Without knowing what OS you're using we can only make guesss about which utilities associated with zip are installed on your system. On many systems the following might work for you:
unzip -Z1...
Showing results 1 to 4 of 4

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