remove/delete the line 10 from a file:
sed -i ’18 d’ fichier_A.txt
OR
sed -i 18d fichier_A.txt
Delete 5 lignes from a certain line number, ex from line 6
sed -i 5,+6d file.txt
Delete the line which contains the word ‘BIDULE’
sed -i ‘/BIDULE/ d’ file.txt