8000 GitHub - jungx098/tidyup · GitHub
[go: up one dir, main page]

Skip to content
jungx098Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

tidyup

A shell script that tidies up plain text files by:

  • Converting to UNIX line endings (LF)
  • Ensuring a POSIX-compliant EOF (trailing newline)
  • Removing trailing whitespace from each line
  • Removing trailing empty lines at the end of the file

Usage

./tidyup.sh file1.txt file2.txt ...

Pass one or more file paths as arguments. Each file is modified in place.

Dependencies

The following tools must be available on your system:

Tool Purpose
dos2unix Converts Windows (CRLF) line endings to UNIX (LF)
sed (GNU) Ensures POSIX EOF; strips trailing whitespace and empty lines

On macOS, GNU sed is required and is expected as gsed. On Linux, the standard sed and dos2unix packages are sufficient.

Platform Support

Platform Status
macOS Supported (requires gsed)
Linux Supported
Windows (MinGW/Cygwin) Supported

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0