"리눅스 UPPER SNAKE CASE를 camelCase로 변환"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
22번째 줄: 22번째 줄:
[[분류: UpperSnakeCase]]
[[분류: UpperSnakeCase]]
[[분류: camelCase]]
[[분류: camelCase]]
[[분류: tr]]
[[분류: sed]]
[[분류: sed]]

2022년 11월 30일 (수) 11:01 기준 최신판

1 개요[ | ]

리눅스 UPPER_SNAKE_CASE를 camelCase로 변환
testuser@localhost:~$ echo "HELLO_WORLD_LOREM_IPSUM" | tr 'A-Z' 'a-z' | sed -r 's/_(.)/\U\1/g'
helloWorldLoremIpsum
testuser@localhost:~$ echo "HELLO_WORLD_LOREM_IPSUM" | tr 'A-Z' 'a-z' | sed -r 's/_([a-z])/\U\1/g'
helloWorldLoremIpsum

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}