Remove Characters From the End of a Large File

This page answers questions like these:


Related Links:
Remove Characters From the End of a Binary File
Remove Characters From the Start of a Binary File
Remove Characters From the Start of a Large File
Count Occurrences of a Hexadecimal Sequence in a File
Count Occurrences of a String in a File
Find Positions of a Hexadecimal Sequence in a File
Join Lines of Text File Together
Output Lines of a File in Reverse Order
Output the Lines Between Two Matching Lines
Sed Cannot Rename Temporary File Permission Denied



Remove Characters From the End of a Large File:

truncate -s FILESIZE FILE ... dd if=FILE1 of=FILE2 bs=FILESIZE2 count=1

Remove the Last Few Characters From the Last Line of a Large Text File:

sed -i '$s/.\{3\}$//' FILE


Related Links:
Remove Characters From the End of a Binary File
Remove Characters From the Start of a Binary File
Remove Characters From the Start of a Large File
Count Occurrences of a Hexadecimal Sequence in a File
Count Occurrences of a String in a File
Find Positions of a Hexadecimal Sequence in a File
Join Lines of Text File Together
Output Lines of a File in Reverse Order
Output the Lines Between Two Matching Lines
Sed Cannot Rename Temporary File Permission Denied

Home  >  Linux / Unix  >  Remove Characters From the End of a Large File


Tags: remove characters from end, text file, huge file, large file, massive file, enormous file, long file, linux, unix, solaris, bsd, aix

Copyright © HelpDoco.com
file-remove-characters-from-end-of-large-file.txt
Linux-Unix/remove-characters-from-end-of-large-file.htm
2