Convert text in a file to UPPER, lower, or Title case with a single command.
파일의 텍스트를 대문자, 소문자 또는 제목 형식으로 한 번의 명령으로 변환합니다.
bash run.sh <FILE_PATH> [CASE]
Arguments / 인수:
| # | Name | Description | 설명 |
|---|---|---|---|
| --- | ------ | ------------- | ------ |
| 1 | FILE_PATH | Path to the text file | 텍스트 파일의 경로 |
| 2 | CASE | upper, lower, or title (default: upper) | upper, lower, title (기본값: upper) |
bash run.sh /home/user/notes.txt lower
Output / 출력:
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이 아님)共 1 个版本