I have a file like this:
This is a file with many words. Some of the words appear more than once. Some of the words only appear one time.
I
Not sed and grep, but tr, sort, uniq, and awk:
sed
grep
tr
sort
uniq
awk
% (tr ' ' '\n' | sort | uniq -c | awk '{print $2"@"$1}') <