News for hackers. Stuff that matters.
Re:Ask HN: Small scripts, hacks and automations you're proud... by d5ve on Sunday March 12, 2023 @03:01PM (#35124626)

    # Sort list by most common terms
    alias sorn='sort | uniq -c | sort -n'
    # Most common IP addresses:
    $ cat access_log | awk '{ print $2 }' | sorn

    # Last 30 modified files.
    function new() {
        ls -lat "$@" | head -30 ;
    }
    # I just downloaded something, where is it?
    $ new ~/Downloads

There are no comments on this comment yet.