Command used to replace all space with | and create another output file
cat test1 | tr ' ' '|' > test2
cat test1 | cut-d ' ' ' |' > test2
cat test1 | tr '|' ' ' > test2
cat test1