Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.15 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.15 KB

vbat

Korean

Enhanced wrapper for bat that adds wildcard support and flexible encoding handling for viewing text files across platforms.

Supported entrypoints

  • vbat.bat — Windows (CMD) launcher
  • vbat.sh — POSIX shell script (Linux/macOS)

Requirements

Quick usage

  • Windows (CMD):
    • vbat.bat myfile.txt
  • Bash (Linux/macOS):
    • ./vbat.sh myfile.txt

Options

  • --encoding=VALUE or -e VALUE — override encoding for files (e.g. UTF-8, CP949, EUC-KR).
  • -h or --help — show usage help.

.encoding sidecar files Each target text file may have a sidecar file named <filename>.encoding that contains a line like:

encoding=UTF8

The scripts will prefer an explicit --encoding argument, then a .encoding sidecar, and finally fall back to a sensible default (PowerShell/CMD variants default to CP949; the shell script defaults to UTF-8).

Examples

  • Force UTF-8 for a single file:
    • vbat.sh myfile.txt --encoding=UTF-8
  • Use short flag:
    • vbat.bat myfile.txt -e CP949