Bonjour,
j'ai un problème avec un script bash.
D'abord voici une partie d'un contenu de fichier que je souhaite inclure dans une chaine de caractères :
cat ~/.kde/share/apps/knotes/notes.ics | grep DESCRIPTION | cut -d ":" -f 2 | grep -n "" | grep ^1: | cut -d ":" -f 2-
Jeudi 24 avril 2008\nCorriger l'anglais
Je souhaite obtenir la chaine de caractères suivante :
"abc Jeudi 24 avril 2008\nCorriger l'anglais def"
Voici comment je procède :
echo "abc `cat ~/.kde/share/apps/knotes/notes.ics | grep DESCRIPTION | cut -d ":" -f 2 | grep -n "" | grep ^1: | cut -d ":" -f 2-` def"
J'obtiens ce résultat :
defJeudi 24 avril 2008\nCorriger l'anglais
Comment expliquez-vous cela?
Merci.
---
[
yugiohjcj.cf]
Poste le Sunday 23 March 2008 12:51:33