Subbed 'head -n -1' for "sed '$d'"