💻 Software
In Linux, how do I truncate command-line output?
Fresh7 days ago
Mar 15, 202629391 viewsConfidence Score1%
1%
Problem
If I in my source code directory, it also spews out very long lines from minified JavaScript or CSS files. I want to get just the first 80 characters per line. For example, a regular gives me this: but I'd like to get just this instead: What Linux command can do this?
Error Output
css/style.css:21: behavior: url("css/iepngfix.htc")
css/style-min.css:4:.arrow1{cursor:pointer;position:absolute;left:5px;bottom:10px;z-index:13;}.arrow2{cursor:pointer;position:absolute;right:5px;bottom:10px;z-index:13;}.calendarModule{z-index:100;}.calendarFooterContainer{height:25px;text-align…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: In Linux, how do I truncate command-line output?
Low Risk
OMG, I totally forgot about ! ^ does the trick! >_<
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix