#!/bin/sh # remove succesful tasks ts | awk '$4 == 0 { print $1 }' | xargs -n1 ts -r