When I executed the sed command below, it returned the expression error as follows.
user% sed -e '$-3,$d' sample.csv
sed: -e expression #1, char 2: unknown command: `-'
What I wanted to do is to delete last 4 lines from the specified file. And I found some web-sites introducing the method above, but it did not work on my environment of Mac OSX 10.9 and CentOS. How can I fix this problem?