On Apr 8, 2004, at 12:01 PM, [EMAIL PROTECTED] wrote:

Does anyone have a one liner using perl, awk or sed that will insert "mb"
between the "6" and "f" ?
For example, 144.06 free

Not exactly what you asked for, but try:


perl -pi.bak -e 's/(\d)\s*(free)/$1mb $2/g' file_to_modify

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to