sed : stream editor for filtering and transforming text.
-n : SUPPRESS automatic PRINTING of pattern space
p : print current line
n : next line
'n;p' : keep odd ones
'p;n' : keep even ones
https://stackoverflow.com/questions/21309020/remove-odd-or-even-lines-from-a-text-file
-n : SUPPRESS automatic PRINTING of pattern space
p : print current line
n : next line
'n;p' : keep odd ones
'p;n' : keep even ones
https://stackoverflow.com/questions/21309020/remove-odd-or-even-lines-from-a-text-file
댓글
댓글 쓰기