Re: [HS] qqun peut-il m'aider pour un script bash ??
On Thu, Jan 10, 2002 at 08:44:50AM +0100, Olivier Abad wrote:
> $ man grep
> /\\b
> symbol \b matches the empty string at the edge of a word
>
> Donc "grep dvif\\b" cherche un mot finissant par "dvif" et ne trouve pas
> dvifb mais bien dvif\b. Mieux vaut utiliser le "grep [d]vifb" pour
> éviter les effets de bord du \
Gagné, c'est exact. Par conséquent,
ps x |grep \\bash
grapille un mot qui commence par "ash" et ne trouve pas "bash".
Dites-donc, c'est amusant, ce jeu là. (et instructif, en plus)
A quand "l'énigme script shell de la semaine" sur debian-user-french?
:-)
--
Camille
simply the most linux - http://www.debian.org
Reply to: