1:19:2013:Saturday:16.00:20.30:Poker 1:24:2013:Thursday:11.00:11.45:Project meeting 1:24:2013:Thursday:14.00:15.10:CSS Meeting
sed -i '5d' file.txt
对于可变行号:
sed -i "${line}d" file.txt
如果您的sed风格中没有-i选项,您可以使用临时文件模拟它:
sed "${line}d" file.txt > file.tmp && mv file.tmp file.txt