Changes between Initial Version and Version 1 of Ticket #2712, comment 4
- Timestamp:
- 01/06/12 11:17:19 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2712, comment 4
initial v1 12 12 c="${cl[%x]:-#}" 13 13 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," 15 15 sed -i "$e" "%b" 16 16