Remove a specific line from a file

sed

sed -i 10d /path/to/file
# alternative (BSD): sed -i'' 10d /path/to/file
click the source code to copy install sed on any operating system with command-not-found.com