et de mettre à jour tout le contenu des pages du site entre les
commentaires :
<!-- here starts the menu-->
[...]
<!-- here end the menu--> ?
J'ai pensé à perl car ça ressemble à :
for i in *.htm; do perl -pe "s/htm/php/g" -i $i; done
qui me permet de remplacer html par php mais là c'est un plus complexe
et je connais très mal perl.
Merci d'avance,
--
http://www.nicolas.pontoizeau.org/
Nicolas Pontoizeau - Promotion EFREI 2005
Nicolas Pontoizeau wrote in message <slrnd60fhd.vns.pontoize*NOSPAM*@choam.unix.efrei.fr>:
Content-Type: text/plain; charset=iso-8859-1
Merci je jeterai un ½il. ^
Attention, tu as un problème de configuration, ceci est un 1/2 et pas un oe.
Nicolas Pontoizeau
Nicolas Pontoizeau wrote in message <slrnd60fhd.vns.pontoize*NOSPAM*@choam.unix.efrei.fr>:
Content-Type: text/plain; charset=iso-8859-1
Merci je jeterai un ½il. ^
Attention, tu as un problème de configuration, ceci est un 1/2 et pas un oe.
Hum c'était une ligature (e dans l'o) mais ça n'existe pas dans l'iso88591 si mes souvenir sont bons donc mon text est encodé en iso885915. En fait un peu compliqué pour moi de savoir si ça passe car je poste en utf-8 sur un machine qui elle n'a pas la locale (pas pratique du tout).
Merci pour l'info.
-- http://www.nicolas.pontoizeau.org/ Nicolas Pontoizeau - Promotion EFREI 2005
Nicolas Pontoizeau wrote in message
<slrnd60fhd.vns.pontoize*NOSPAM*@choam.unix.efrei.fr>:
Content-Type: text/plain; charset=iso-8859-1
Merci je jeterai un ½il.
^
Attention, tu as un problème de configuration, ceci est un 1/2 et pas un oe.
Hum c'était une ligature (e dans l'o) mais ça n'existe pas dans l'iso88591
si mes souvenir sont bons donc mon text est encodé en iso885915. En fait
un peu compliqué pour moi de savoir si ça passe car je poste en utf-8
sur un machine qui elle n'a pas la locale (pas pratique du tout).
Merci pour l'info.
--
http://www.nicolas.pontoizeau.org/
Nicolas Pontoizeau - Promotion EFREI 2005
Nicolas Pontoizeau wrote in message <slrnd60fhd.vns.pontoize*NOSPAM*@choam.unix.efrei.fr>:
Content-Type: text/plain; charset=iso-8859-1
Merci je jeterai un ½il. ^
Attention, tu as un problème de configuration, ceci est un 1/2 et pas un oe.
Hum c'était une ligature (e dans l'o) mais ça n'existe pas dans l'iso88591 si mes souvenir sont bons donc mon text est encodé en iso885915. En fait un peu compliqué pour moi de savoir si ça passe car je poste en utf-8 sur un machine qui elle n'a pas la locale (pas pratique du tout).
Merci pour l'info.
-- http://www.nicolas.pontoizeau.org/ Nicolas Pontoizeau - Promotion EFREI 2005
DoMinix
Nicolas Pontoizeau wrote:
$CODE n'est pas interpreté par le shell a cause de <'> essaye cela #!/bin/bash perl -p00i~ -e 'BEGIN{CODE=`cat menu.txt`};s/<!-- here starts the
OOPS ^manque "$" la
perl -p00i~ -e 'BEGIN{$CODE=`cat menu.txt`};s/<!-- here starts the menu-->.*<!-- here end the menu-->/$CODE/gm' svc_bdrp.html
Je sais pas si tu as tester mais chez moi ça marche pas.
perl -p00 -e 'BEGIN{$CODE=`cat menu.txt`};s/<!-- here starts the menu-->.*<!-- here end the menu-->/$CODE/gs' page.txt
j'ai testé et ca marche, j'ma fourré entre le /m et /s des regex, un classique celui la.
-- dominix
Nicolas Pontoizeau wrote:
$CODE n'est pas interpreté par le shell a cause de <'>
essaye cela
#!/bin/bash
perl -p00i~ -e 'BEGIN{CODE=`cat menu.txt`};s/<!-- here starts the
OOPS ^manque "$" la
perl -p00i~ -e 'BEGIN{$CODE=`cat menu.txt`};s/<!-- here starts the menu-->.*<!-- here end the menu-->/$CODE/gm' svc_bdrp.html
Je sais pas si tu as tester mais chez moi ça marche pas.
perl -p00 -e 'BEGIN{$CODE=`cat menu.txt`};s/<!-- here starts the
menu-->.*<!-- here end the menu-->/$CODE/gs' page.txt
j'ai testé et ca marche, j'ma fourré entre le /m et /s des regex,
un classique celui la.