Bonjour à tous,

J'ai un soucis assez compliqué à résoudre, en tout cas, en ce qui me concerne...

Voici un extrait du contenu que je souhaite parser :
config SCSI_LOGGING
bool "SCSI logging facility"
depends on SCSI
---help---
This turns on a logging facility that can be used to debug a number
of SCSI related problems.

If you say Y here, no logging output will appear by default, but you
can enable logging by saying Y to "/proc file system support" and
"Sysctl support" below and executing the command

echo "scsi log token [level]" > /proc/scsi/scsi

at boot time after the /proc file system has been mounted.

There are a number of things that can be used for 'token' (you can
find them in the source: <file:drivers/scsi/scsi.c>), and this
allows you to select the types of information you want, and the
level allows you to select the level of verbosity.

If you say N here, it may be harder to track down some types of SCSI
problems. If you say Y here your kernel will be somewhat larger, but
there should be no noticeable performance impact as long as you have
logging turned off.

config SCSI_SCAN_ASYNC
bool "Asynchronous SCSI scanning"
depends on SCSI
help
The SCSI subsystem can probe for devices while the rest of the
system continues booting, and even probe devices on different
Et le résultat attendu :
SCSI_LOGGING SCSI
SCSI_SCAN_ASYNC SCSI
Donc, si j'explique : je veux extraire le "depends on" pour chaque "config...".
Et tant qu'à compliquer, on peut très bien avoir :
config A
depends on B
depends on !C
Et je veux :
A B !C
Et là je coince, j'ai beau tourner grep, sed et awk dans tous les sens, je m'en sors pas...

Merci d'avance de votre aide !