Linux Usuń ostatnią linię z pliku
sed '$d' <file>
sed -i '$d' <file> # to edit in place
Hungry Hippopotamus
sed '$d' <file>
sed -i '$d' <file> # to edit in place
#remove last 80 lines from cars.csv
head -n -80 cars.csv > tmp.csv && mv tmp.csv cars.csv
# Basic syntax:
sed -i '$d' input_file
# Note, -i means that the input_file will be modified in place