#!/bin/bash for i in $(seq 1 10) do echo "${i} 1 1 pub chan${i}" > /tmp/ipc/gen sleep 1 done