#!/bin/rc # q - prefix a string to input lines # usage: |q string if(~ $#* 0) what=' ' if not{ what=$1 shift } sed 's/^/'$what' /' $*