Bash indexOf

1 개요[ | ]

Bash indexOf
Bash
Copy
STR="Hello World!"
echo $STR | awk '{print index($0,"ll")}'
# 3
echo $STR | awk '{print index($0,"ld")}'
# 10
echo $STR | awk '{print index($0,"H")}'
# 1
echo $STR | awk '{print index($0,"z")}'
# 0

2 같이 보기[ | ]

3 참고[ | ]