Convert text in a file to UPPER, lower, or Title case with a single command. 파일의 텍스트를 대문자, 소문자 또는 제목 형식으로 한 번의 명령으로 변환합니다.
bash
bash run.sh <FILE_PATH> [CASE]
Arguments / 인수:
#NameDescription설명1FILE_PATHPath to the text file텍스트 파일의 경로2CASEupper, lower, or title (default: upper)upper, lower, title (기본값: upper)
bash
bash run.sh /home/user/notes.txt lower
Output / 출력:
text
FILE: /home/user/notes.txt
CASE: lower
---
hello world this is a test
---
STATUS: OK
STATUS: OK (exit code 0) — 변환된 텍스트와 STATUS: OK 출력 (종료 코드 0)ERROR: (exit code non-zero) — ERROR: 로 시작하는 오류 메시지 (종료 코드 0이 아님)