in reply to How to read in data with pipe characters
The pipe character means something special to your shell: for most, it means to pipe the output of one command to the input of the next. Quote your argument string, eg "a|b". See your shell's documentation for quoting rules and special characters.