We’re rewarding the question askers & reputations are being recalculated! Read more.
2 missing ./
source | link

You can use this nice oneliner if you have GNU sed.

 sed -i "$'$ d"d' ./*

It will remove the last line of each non-hidden file in the current directory. Switch -i for sedGNU sed means to operate in place and "$'$ d"d' commands the sedsed to delete the last line ($ meaning last and d meaning delete).  

You can use this nice oneliner if you have GNU sed.

 sed -i "$ d" *

It will remove the last line of each file in the current directory. Switch -i for sed means to operate in place and "$ d" commands the sed to delete the last line ($ meaning last and d meaning delete).  

You can use this nice oneliner if you have GNU sed.

 sed -i '$ d' ./*

It will remove the last line of each non-hidden file in the current directory. Switch -i for GNU sed means to operate in place and '$ d' commands the sed to delete the last line ($ meaning last and d meaning delete).

1
source | link

You can use this nice oneliner if you have GNU sed.

 sed -i "$ d" *

It will remove the last line of each file in the current directory. Switch -i for sed means to operate in place and "$ d" commands the sed to delete the last line ($ meaning last and d meaning delete).