Closed zdavatz closed 11 months ago
this script seems to work:
#!/bin/bash
# Set the base URL
base_url="https://emediplan.ch/wp-content/uploads/"
# Get the current year and month
current_year=$(date +%Y)
current_month=$(date +%m)
# Form the URL with the first day of the current month
file_url="${base_url}${current_year}/${current_month}/${current_year}${current_month}01__MappingPharmacodeToGtinToSwissmedicDescription.xlsx"
# Set the destination directory where you want to save the file
#rm /tmp/*.xlsx
destination_directory="/tmp"
# Download the file
echo "Downloading file..."
wget -P "$destination_directory" "$file_url" -O pharmacodes.xlsx
# You can add additional commands here if needed
echo "Download complete."
it looks like only two Pharmacodes are missing.
GTIN: 7612449123870 Pharmacode: 2834904 GTIN: 7612449123924 Pharmacode: 2834910