Now you can run this:
cat file.txt | ./goscript.sh -c 'script.Stdin().Column(1).Freq().First(10).Stdout()'
#!/tmp/goscript.sh script.Stdin().Column(1).Freq().First(10).Stdout()
chmod 755 topten.sh echo "one\none\ntwo" | ./topten.sh
Now you can run this:
Or write scripts like this - call it 'top10.sh': Then run this: