Hi,
Recently discovered Ammonite and liking it, and following along with the examples – although I have to rely on https://github.com/lihaoyi/Ammonite/blob/c25dc3aa46bd409fad147aababa2186cfd51b7d8/readme/Shell.scalatex#L116
because for some reason the website isn’t rendering properly. I’m guessing it’s something to do with the @compare
there but I’m not sure.
Here’s a comparison of a certain section (below) and what I see (attached), hopefully someone has clues on how to fix this.
@p
Here is how to find the largest 3 files in a given directory tree:
@compare(
"find ./repl/src -ls | sort -nrk 7 | head -3",
"ls.rec! wd/'amm/'src | (x => x.size -> x.last) sortBy (-_._1) take 3"
)
Cheers,
Agam