${parameter:offset:length}
Substring Expansion. Expands to up to length characters of parameter starting at the character specified by off-
set. If length is omitted, expands to the substring of parameter starting at the character specified by offset.
length and offset are arithme....
참고로 연속된
참고로 연속된 글자입니다...
awk나 cut등으로는 못할듯 ㅋ
.
#!/bin/bash THIS='12345' THAT=${THIS:0:3} echo ${THAT} ^Dman bash 해서 죽~~ 넘기다 보면 이런것이 나옵니다...
${parameter:offset:length} Substring Expansion. Expands to up to length characters of parameter starting at the character specified by off- set. If length is omitted, expands to the substring of parameter starting at the character specified by offset. length and offset are arithme....앗..감사합니다
앗..감사합니다
댓글 달기