You're viewing a comment by Przemek and its responses.

April 05, 2010, 10:38

#19. Compare a remote file with a local file

which reminds me of a powerful command output redirection, also from many commands in parallel

cmd <(subcmd) <(subcmd) ...

e.g. to compare two files, sorting them first:

diff <(sort file1) <(sort file2)

Comment Responses

Steve Permalink
August 09, 2010, 12:10

...and use brace expansion:

$ diff <(sort file{1,2})

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "computer_208": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.