DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
linux remove last line from file
sed '$d' <file> sed -i '$d' <file> # to edit in place
Source by unix.stackexchange.com #
PREVIOUS
NEXT
Tagged:
#linux
#remove
#line
#file
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit