Comment

Comment by efortis

Also, needlessly sequential tasks. For example, to concurrently install NPM packages in many projects:

    npmi() {
      local pids=""
      for app in $apps; do
        echo "Installing NPMs on $app..."
        cd $REPO/$app
        npm install &
        pids="$pids $!"
      done
      wait $pids
    }
https://github.com/uxtely/ops-utils/blob/main/npm.sh
parent efortis 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton