Shell Command Generator

Given lines of data and a template, this script iterates through each line and generates output using the template and performs variable replacement. The default variable in the template to replace is $1. This imitates what xargs does without execution.

Why can't I do this in shell? - you could, but the argument replacement in shell script is tricky, especially when quotes are involved. Escaping the quotes while making argument replacement to happen is extremely difficult. This tools is designed do the replacement to create a shell script for 1 time use.

DataTemplate

Varaible: