Thanks for the rapid response. I see that I am not able to attach workflow (presumably for security reasons?), but the it's quite simple:
The first module is a "Keyword" without an argument.
The second module is the bash script which takes its arguments from the clipboard.
The final module is "Copy to Clipboard" module which uses plain text, has the content {var:id}, automatically pastes to the frontmost app, and makes the clipboard item transient.
I've provided screenshoots of the overall workflow, and the final module.
Is this information sufficient?
It still seems to be the case that the line with the awk command is malfunctioning even though it works fine in the shell. I've noticed that you can change the scripting language, and I've changed it to zsh which is the scripting language for the terminal, but it still keeps making this error. I think perhaps the best approach would be to rewrite this in python, which probably has better string manipulation?
(NB realise these are newbie questions - this is my first workflow)
Thanks
N