Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

391–393 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#391
post #278

There are so many to list that I'll skip the more obvious ones (they're well represented in the comments) and pick a few that I've been enjoying a lot lately: Netflix-Skunkworks/go-jira[0] - Jira interface written in Go that is incredibly flexible. bat[1] - cat with code highlighting climate[2] - Shell swiss-army knife of tools That last one deserves a post on its own. It's certainly not the most portable thing -- re…

> such as getting an external IP address of a host from the command-line. What about using `ping host`? This also prints the ip

Ah, sorry, I wasn't clear in my statement:

A function that it provides is to display the public IP address from a host behind the NAT.

Another way to do this: `dig @resolver1.opendns.com ANY myip.opendns.com +short`[0] ... it's just trickier to remember. And since dig is a tool for performing DNS lookups, `man dig` doesn't hint at this particular trick.

In fact, I didn't actually remember the command that displays that for `climate`[1], because if I had, I would have written it as `public-ip`, which `climate help` informed me of. :)

[0] ... or if you prefer a more interactive and profane experience, try `lynx wtfismyip.com`

[1] My public IP is displayed on terminal start since I need it with some frequency; Of course, it's displayed as "External IP:", which is something I'll have to remedy.

Re: Ask HN: Best Command-Line Applications?

#392
post #277

Earlier quoted context omitted.

I might be revealing my lack of experience here, but why would you need an app to view your csv? What is the benefit of this over running the data frame or df.head?

Visidata is much more than a simple CSV viewer. It can open xls/xlsx/sas7bdat/spss files, and allows you to quickly edit the in-memory copy of the table using Vim-like keyboard shortcuts. It also allows you to create plots using Braille Unicode symbols. It's a great tool!

Thank you so much for sharing this with me. Life changer!

Re: Ask HN: Best Command-Line Applications?

#393
post #383

here is a list of all tools mentioned in the thread. unfortunately, including descriptions and links made the comment to large, so for now just the names. the number in front is the number of mentions. links to other lists: https://beyondgrep.com/feature-comparison/ https://code.kiwi.com/lesser-known-tools-we-love-at-kiwi-com... https://github.com/agarrharr/awesome-cli-apps#terminal-utili... https://github.com/alebca…

i just discovered some awesome tools in the moreutils package mentioned elsewhere in this discussion:

sponge: soaks up stdin, so you can pipe it back to the same file you just read. compare:

  grep -v "^me:" /etc/passwd > /etc/passwd # failed attempt to remove user *me*.
  grep -v "^me:" /etc/passwd | sponge /etc/passwd # this works because sponge will wait until the grep is completed before writing back to the file.
another is:

vipe: insert vi into a pipe to do some manual editing of the data while it's handled in a pipe. could also be useful to preview pipe contents while they are being processed.

moreutils also includes vidir, an alternative to qmv.

greetings, eMBee.

Post reply on HN