I used 'sed'...:
Code:
sed "s/\([0-9]\) \([0-9]\)/\1\/\2/g" input.txt > output.txt
This replaces every occurrence of
Code:
\([0-9]\) \([0-9]\)
(ie. two digits separated by a space - the \( and \) mean we can recall the digits we matched later on)
with
(ie. the two digits we matched before, now separated by a slash. The slash needs to be escaped to prevent sed interpreting it as the end of the pattern)
Hope this helps,