I have a file with pipe delimiters. I'd like to replace the pipes with <tab> and mail the file as attachment. I do get mail but still with pipes.
Part of my script -
OUTPUT_FILE=/path/to/file/filename.xls
sed 's/|/ /g' $OUTPUT_FILE
uuencode ${OUTPUT_FILE} $OUTPUT_FILE | mail -s "Test" [email protected]
I tried replacing $OUTPUT_FILE with ${OUTPUT_FILE} in sed but still I get file with pipe.