Last active
March 11, 2021 00:10
-
-
Save woodRock/000b1c785ab52488f5ef6d797861e563 to your computer and use it in GitHub Desktop.
Truncate: Remove the last two characters of a file in Linux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
truncate -s-2 filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source