News for hackers. Stuff that matters.
Re:Bash Pitfalls by lisivka on Sunday August 16, 2015 @06:56PM (#10070578)

  map() {
    local COMMAND="${1:?Argument is required: command to execute, e.g. "echo". Example: \"map echo *\".}"
    shift 1
    local I
    for I in "$@"
    do
        [ -e "$I" ] || continue
        $COMMAND "$I"
    done
  }
Re:Bash Pitfalls by hyperpape on Sunday August 16, 2015 @07:56PM (#10070748)
Neat! I'm curious: did you come up with this on the spot, or is this actually something you use?
Re:Bash Pitfalls by lisivka on Wednesday August 19, 2015 @01:36PM (#10087129)
I just typed it in window.