Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

51–60 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#51

If you aren't using tmux or screen, you probably should be, especially over SSH sessions. They allow you to have multiple consoles open and switch between them, split window, and disconnect from SSH and then reconnect with all your things still open and running (as long as the server stayed running).

I have a EC2 instance who's main purpose is to run a screen session. I ssh to my EC2, and load that screen. I have every server I manage in it's own "window" inside this screen. I run screen on each of these machines, so I can hop between inner and outer screens.

The main screen instance is started with:

screen -S outer_screen

I then create a screen session for that EC2 with

screen -S inner_screen

I pop open new screens with this handy command:

screen -S outer_screen -X screen -t newmachine ssh user@newserver.example.com

Re: Ask HN: Best Command-Line Applications?

#56
post #45

Earlier quoted context omitted.

I mean directly operating on the line ending itself. e.g. remove all lines or replace `\n` with the record separator, etc.

Like so? % echo 'one\ntwo\nthree' | sed -e 's,$, four,' one four two four three four

No, like this:

    > echo ‘one\ntwo\nthree’ | tr \n \|
    one|two|three
Post reply on HN