tr command

i am getting following error while executing tr command

tr -s "@@@" "|" testtr
tr: too many arguments

is there is ant other way for above functionality

man tr

tr is a pipe. You have to redirect the file through tr. cat testtr | tr -s "@@@" "|" or tr -s "@@@" "|" < testtr

Carl