sed '1~2d' file > new_file # 删除奇數行
sed '1~2!d' file > new_file # 删除偶數行
awk 'NR%2==0' filename > new_file # 删除奇數行
awk 'NR%2==1' filename > new_file # 删除偶數行
sed '1~2d' file > new_file # 删除奇數行
sed '1~2!d' file > new_file # 删除偶數行
awk 'NR%2==0' filename > new_file # 删除奇數行
awk 'NR%2==1' filename > new_file # 删除偶數行