Gérer les paramètres contenant un, ou des espaces
Bonjour,
J'ai un script "global" qui contient des sous-scripts :
Code:
1 2 3 4 5 6
| #!/bin/bash
########## Script : scriptGlobal.sh ##########
./p1union.sh "~/Téléchargements/Valorisation intraday 20220000001.csv" #ne marche pas !
./p1union.sh ~/Téléchargements/Valorisation\ intraday\ 20220000002.csv #ne marche pas non plus ! |
Le compte-rendu terminal donne :
Code:
1 2 3 4 5 6
| cat: '~/Téléchargements/Valorisation': Aucun fichier ou dossier de ce type
cat: intraday: Aucun fichier ou dossier de ce type
cat: 20220000001.csv: Aucun fichier ou dossier de ce type
cat: /home/thierry/Téléchargements/Valorisation: Aucun fichier ou dossier de ce type
cat: intraday: Aucun fichier ou dossier de ce type
cat: 20220000002.csv: Aucun fichier ou dossier de ce type |
¿ Comment faire pour prendre en paramètre les fichier de type : "Valorisation intraday 2022000000x.csv" ?