Changeset 3275 for branches/3.2


Ignore:
Timestamp:
Apr 29, 2014, 9:51:06 PM (5 years ago)
Author:
bruno
Message:
  • Avoids an error msg from perl when invoked in a filter context (don't use -i)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/analyze-my-lvm

    r3066 r3275  
    1313GetValueFromField() {
    1414    local res
    15     grep -i "$2" "$1" | perl -pi -e 's/\s*(.*)\s\s\s+(.+)$/$2/;s/\sT[i]*B/t/;s/\sG[i]*B/g/;s/\sM[i]*B/m/;s/\sK[i]*B/k/'
     15    grep -i "$2" "$1" | perl -p -e 's/\s*(.*)\s\s\s+(.+)$/$2/;s/\sT[i]*B/t/;s/\sG[i]*B/g/;s/\sM[i]*B/m/;s/\sK[i]*B/k/'
    1616}
    1717
Note: See TracChangeset for help on using the changeset viewer.