Skip to Content
gnux

-c, --bytes

Output the last NUM bytes; or use -c +NUM to output starting with byte NUM of each file.

An option of tailx.

Usage

tailx -c [+]NUM [FILE]...
tailx --bytes=[+]NUM [FILE]...

Details

ShortLongValueDefaultMeaning
-c--bytes[+]NUMoutput the last NUM bytes; or use -c +NUM to output starting with byte NUM of each file

Examples

tailx -c 100 app.log

Drop a 3-byte UTF-8 byte-order mark by starting at byte 4

tailx -c +4 with-bom.txt > clean.txt

Help in the terminal

gnux help tailx --bytes

On this page