Skip to Content
gnux

-C, --line-bytes

Put at most SIZE bytes of records per output file.

An option of splitx.

Usage

splitx -C SIZE [FILE [PREFIX]]
splitx --line-bytes=SIZE [FILE [PREFIX]]

Details

ShortLongValueDefaultMeaning
-C--line-bytesSIZEput at most SIZE bytes of records per output file

Examples

Send a log in email-sized pieces of at most 5 MB, keeping lines whole

splitx -C 5M app.log app.log.

Help in the terminal

gnux help splitx --line-bytes

On this page