sed "s/s*(.*)s*/1/g"
it works fine ,
Also thanks for your post tbroderick
]]>as for using sed, you want to do it like this:
sed "s/<anything before>(<pattern to match>)<anything after>/1/g"
that will replace any line with whatever was in the "(" and ")" grouping....
so... lets say we have a line like:
" I have spaces before and after "
if we pipe this line to sed, we can do:
sed "s/s*(.*)s*/1/g"
wow, that looks complicated 8)
you can also use "tr" to remove characters from the output....
how about this: post your output and what you want it to look like, and I'll give you a sed expression to make it work 8)
]]>- Amount of Packages on my system
- My CPU Model
- Amount of modules loaded
And I got it work correctly, but there's one little detail, I need to delete some spaces when I am editing the result of ...for example /proc/cpuinfo , how can I do that?, something related to sed?
Thanxs
]]>