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
Or, you can also do it in a simple way.
jc_hms() { cat }
Though all answers so far have disregarded the fact that this was not what OP wanted (he stated the function is simplified)