Making the best CLI programs - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
Quote:I'm not quite sure. To be honest, I feel like headers/alignment makes it harder to parse the output. For example, in order to get all the temperature, you'll need: But if you're intending to use awk, the first input shouldn't be a problem. It could be like: Code: weather | sed 1d | awk '{print $5}' awk easily formats columns. obs.: There must be some bug in the javascript because I can't quote z3bra's last post automatically with the quote button. Trying to quote other posts works fine. |
|||