Find out how to delete line 7 in a file in Bash?

I attempted

sed -i '7d' ~/demo

error:sed: 1: “~/demo”: command a expects adopted by textual content


Host is a brand new contributor to this web site. Take care in asking for clarification, commenting, and answering.
Take a look at our Code of Conduct.


You could
log in to reply this query.

Browse different questions tagged .