[ILUG] [Possibly OT] Network Traffic Analysis and InterfaceControl
Brian Foster
blf at blf.utvinternet.ie
Fri Feb 24 07:02:55 GMT 2006
| eval $'y=$(( ${x//[,\n]/+} ))' # add, result in $y
not that it really matters, but I realised overnight the
`eval' for the version I eventually posted (above) is not
needed; this is more(?) obvious if re-written as:
y=$(( ${x//[,$'\n']/+} )) # add, result in $y
cheers!
-blf-
--
Experienced (20+ yrs) kernel/software Eng: | Brian Foster Montpellier,
• Unix, embedded, &tc; • Linux; • doc; | blf at utvinternet.ie FRANCE
• IDL, automated testing, process, &tc. | Stop E$$o (ExxonMobile)!
Résumé (CV) http://www.blf.utvinternet.ie | http://www.stopesso.com
More information about the ILUG
mailing list