Changes between Initial Version and Version 1 of Ticket #2712, comment 4


Ignore:
Timestamp:
01/06/12 11:17:19 (13 years ago)
Author:
andrew_b
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2712, comment 4

    initial v1  
    1212        c="${cl[%x]:-#}" 
    1313        read s < '%b' 
    14         [[ "${s:0:${#c}}" == "$c" ]] && e="s,^$c,," || e="s,^,$c," 
     14        [[ "${s:0:${#c}}" == "$c" ]] && e="s,!^$c,," || e="s,!^,$c," 
    1515        sed -i "$e" "%b" 
    1616