I have as simple function in a bash script and I would like to pipe stdout to it as an input.
jc_hms(){ printf \"$1\" }
I\'d like to use
You can't pipe stuff directly to a bash function like that, however you can use read to pull it in instead:
read
jc_hms() { while read -r data; do printf "%s" "$data" done }
should be what you want