[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't the shell do a better job

On Fri, 7 Jan 2005, Ron Johnson wrote:
On Fri, 2005-01-07 at 19:54 -0600, Aaron Hall wrote:
* bash-style process substitution: diff =(sort file1) =(sort file2)
   instead of:
      sort file1 > file1.sorted
      sort file2 > file2.sorted
      diff file1 file2

Well that's spiffy...

It'd be more spiffy if I'd gotten the last line correct. :)

    diff file1.sorted file2.sorted

- Aaron

Aaron Hall           :         "Let us cling to our legends, sir;
ahall@vitaphone.net  :          They are the spiritual side of facts."
                     :                     -- Harley Granville-Barker

Reply to: