一道Shell 面试题 print out the debug summary for current machine

题目要求:1. Save all results to one destination file under current folder。
        a. The user can pass the specific filename in cmdline.
        b. By default the script will save the output to result.txt, if filename is not given.