FG
💻 Software

How to print last character of a file

Fresh5 days ago
Mar 15, 202628799 views
Confidence Score0%
0%

Problem

In Unix, using a simple command like sed, is there a way to print the last character of a file?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to print last character of a file

Low Risk

tail is the right tool, not sed.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment