5

CSV Delimiter Settings

view full story
linux-howto

http://www.unix.com – Hi All, I am really new to Shell Scripting and would appreciate any help here. I have a script that runs throguh a cron job on a daily basis, problem is when the file is attached and e-mailed, it uses a comma delimiter to seperate fields. How can I prevent the script from using a comma delimiter, maybe even changing the delimiter to something like a pipe delimiter? Here is my exisiting script: Code: #!/bin/bash IFS= "|" # Backup directory location e.g /backups BACKUPDIR="/mnt/data6/reports" MAILCONTENT="files" # Set the maximum allowed email size (HowTos)