awk '{ seen[$1] = $2","seen[$1] ; } END { for (key in seen) { print key" "seen[key] ; } } ' /your/file.txt > /your/newfile.txt
In reply to Re^3: Perl hashes: is there some way of adding more data to the value associated with an existing key?
by onelesd
in thread Perl hashes: is there some way of adding more data to the value associated with an existing key?
by mertserger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |