Hacker News new | ask | show | jobs
by mr_o47 1021 days ago
My favorite would be modernCSV since I look at CSVs all day

Also I found this cool brew bash function i thought i share this here

brewpackages (){ brew list --formula | xargs -n1 -P8 -I {} \ sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.[0-9] files, \(.\)).$/{} \1/'" | \ sort -h -r -k2 - | column -t }

This allows you to view how much space each package is taking

1 comments

it seems to be missing a quote somewhere, it gives the bash continuation prompt
brewpackages (){ brew list --formula | xargs -n1 -P8 -I {} \ sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.[0-9] files, \(.\)).$/{} \1/'" | \ sort -h -r -k2 - | column -t }

Maybe try now

Nope, no luck.

But strangely, your comment is rendering with a couple of spans of italics. Here is a paste, with "i" tags and "<\n>" marking the odd rendering I see:

brewpackages (){ brew list --formula | xargs -n1 -P8 -I {} \ sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.<i>[0-9]</i> files, \<\n>(.\<i>))</i>.$/{} \1/'" | \ sort -h -r -k2 - | column -t }

is HN consuming your markup unexpectedly ?

That could be the reason

https://paste.sh/pHKSPU4w#EAjzygEb4qLQwNmFxqRcQNBO

I have added the function to the paste link

Works! Cheers.
I’m glad it works now