Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

bat cat helper script for custom encoding

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages