Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • setdiff '*' '*.h *.c'
    ls !(*.[ch])
  • BTW, you probably also want to be using comm(1) [] instead of fgrep.

    comm -23 $set1 $set2

    Also, you should probably add a line to delete those temp files:

    trap "rm -f $set1 $set2" EXIT HUP INT QUITE TERM

    That way, they get deleted on exit, or if some common signal gets delivered.