#!/bin/bash FQ="$1" s() { echo "\$ $1" sh -c "${1/fq/$FQ -o unicode=true -C}" } s "fq -n '\"hello\"'" echo s "fq -n '\"hello\" | d'"