Horje
linux remove last line from file Code Example
linux remove last line from file
sed '$d' <file>
sed -i '$d' <file> # to edit in place
bash delete the last line of a file
# Basic syntax:
sed -i '$d' input_file

# Note, -i means that the input_file will be modified in place




Shell

Related
postgres config file location Code Example postgres config file location Code Example
undo local commit Code Example undo local commit Code Example
how to undo a commit Code Example how to undo a commit Code Example
last return code linux Code Example last return code linux Code Example
git log with author oneline Code Example git log with author oneline Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8