I have an auto-generated file each day that gets called by a shell script. But, the problem I\'m facing is that the auto-generated file has a form of:
FIL
Try:
sprintf() { local stdin; read -d '' -u 0 stdin; printf "$@" "$stdin"; }
Example:
$ echo bar | sprintf "foo %s" foo bar