hi
the following snippet will fetch any number within quotes
inside the shell script u give
NUMBER=` sed -n 's/<!entity servers"\([0-9]\+\)">/\1/gp' `
$NUMBER has the number that was within quotes
** Note:: the single quote next to '=' is backquote i.e the one thats
above TAB key**
Happy hacking!
Manikandan.P
Ayyadurai_Nagarajan@xxxxxxxxxxxxxxxxxxx wrote:
Hi All,
I have the following string within a file .
<!ENTITY servers "5">
Can any one of you tell how to extract the value 5? That is
any value loacted within the " " .
Thanks in Advance
Nagarajan
_______________________________________________
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc