Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #delete #line #file
ADD COMMENT
Topic
Name
9+6 =