Unfortunately, I think we (I, at least) are not the people to properly guide you here. My example above works to do the thing in a terminal using bash or sh; perhaps start there to experiment.
Unfortunately, I think we (I, at least) are not the people to properly guide you here. My example above works to do the thing in a terminal using bash or sh; perhaps start there to experiment.