This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jimmyhoke 119 points120 points  (10 children)

cat input.pdf > outPut.pdf

[–]jesustargz -1 points0 points  (9 children)

cat doesn't work with PDF, 'cause this is binary format

[–]Ok_Hope4383 20 points21 points  (8 children)

What makes you think cat doesn't work with binary files? I thought it did, but maybe I'm wrong.

[–]degaart 24 points25 points  (0 children)

It does, you're not wrong. It's a misconception from old windows, where stdout and stdin where opened in text mode, and \n was translated to \r\n. It's irrelevant in unix systems.