22-08-2024
This commit is contained in:
46
iconv.sh
Executable file
46
iconv.sh
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
red="\033[1;31m"
|
||||
greenbold="\033[1;32m"
|
||||
green="\033[0;32m"
|
||||
yellow="\033[0;33m"
|
||||
bold="\033[1m"
|
||||
#bold_under="\033[1;4m"
|
||||
underline="\033[4m"
|
||||
reset="\033[0m"
|
||||
|
||||
|
||||
insta=false # #Becasseauvariable #LeTeich #Bird
|
||||
flickr=true # "Bécasseau variable" "Le Teich" Bird
|
||||
ccpx=true # Bécasseau variable, Le Teich, Bird
|
||||
|
||||
# Tags automatically added
|
||||
# You can add tags to this 4 arrays
|
||||
|
||||
wild=("wildlife" "wildlifephoto" "wildlifephotographer")
|
||||
nat=("naturelovers" "natureshot" "naturephotography")
|
||||
reg=("Bourgogne" "Burgundy" "Bourgogne Franche-Comté" "Côte d'or")
|
||||
#cinqcent=("Bécasseau variable" "Le Teich" "Bird")
|
||||
|
||||
|
||||
|
||||
for i in "${reg[@]}"
|
||||
do
|
||||
if [[ "$i" = *" "* ]]; then
|
||||
region_flickr+="\"${i}\" "
|
||||
#region_ccpx+="${i},"
|
||||
else
|
||||
region_flickr+="${i} "
|
||||
#region_ccpx+="${i},"
|
||||
fi
|
||||
|
||||
###
|
||||
region_ccpx+="${i},"
|
||||
|
||||
#region_insta+="#$(echo "${i}" | iconv -f UTF-8-MAC -t ascii//translit | sed 's/[^a-zA-Z 0-9]//g' | sed 's/ //g') "
|
||||
region_insta+="#$(echo "${i}" | iconv -s -f UTF-8-MAC -t ASCII//translit | sed 's/[^a-zA-Z 0-9]//g' | sed 's/ //g') "
|
||||
done
|
||||
|
||||
echo "$region_flickr"
|
||||
echo "$region_insta"
|
||||
echo "$region_ccpx"
|
||||
Reference in New Issue
Block a user