Diffing the output of two commands

The GNU diff command on most Linux and UNIX systems will diff the contents of two files. With Bash, you can, using process substitution, take the output of any arbitrary command and process its input, or output, as a file descriptor. In this way, you can then use diff against the output of two commands as follows

diff <(cmd1) <(cmd2)

Both cmd1 and cmd2 will appear as a file name/file descriptor. The < character indicates that the file descriptor should → Continue reading “Diffing the output of two commands”

Stuffed Eggplant

This is a really delicious Indian dish that can be enjoyed with either roti or rice.

Ingredients

  • 10 – 12 small round brinjal (mini eggplants)
  • 1/2 TSP salt
  • 4 TBSP oil
  • 1 medium white or red onion, chopped
  • 6 – 7 dried red chilies
  • 2 TBSP coriander seeds
  • 1 TBSP cumin seeds
  • 1 TSP fenugreek seeds
  • 2 TSP sesame seeds
  • 9 cloves garlic
  • 1/4 cup of peanuts, or if you have a peanut allergy you can substitute with sliced almonds
Continue reading “Stuffed Eggplant”