SED (Linux) – Restricting to a line number

To use SED commands in Microsoft Windows you will have to use double quotes " " and NOT single quotes ' '.

The simplest restriction is a line number. If you wanted to delete the first number on line 3, just add a "3" before the command:

sed '3 s/[0-9][0-9]*//' <file >new

SOURCE

LINK

LANGUAGE
ENGLISH