Create contacts.CSV on desktop with two number

#!/bin/bash

csv=”$HOME/Desktop/contacts.csv”

# Check if file already exists
if [ -f “$csv” ]; then
echo “contacts.csv already exists on your Desktop. Not overwriting.” else
# Create file and add headers and sample data
cat < “$csv”
Name,Phone,Message
Alice,+16781234567,Hey Alice! Ray here, just checking in.
Bob,+14085551234,Hi Bob—hope all’s well!
EOF
echo “contacts.csv created on your Desktop with sample entries.” fi

Leave a comment