Hacker News new | past | comments | ask | show | jobs | submit login

For a quick and dirty on the spot visualization for some data on the command line, I'd like to plug the following:

    function plot() {
        { echo 'plot "-"' "$@"; cat; } | gnuplot -persist;
    }
For example:

    seq 100 | sed 's/.*/s(&)/' | bc -l | plot linecolor 2



Nice! I like it when you can plug such programs in a pipeline.

Recently found out that you can use png:- as source or destination in any imagemagick command, to pipe images around! I find it really useful in combination with xclip, with -t to set the mime type. You can paste the result almost anywhere!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: