我有一个.sql文件。我使用Python逐行读取,并将每一行保存到另一个文件中。因此,在理论上,输入和输出文件必须相同,但实际上输出文件比输入文件小10倍以上。我是这样做的:for line in file('input.sql'): print >>f, line有人知道信息在哪个阶段丢失了吗?为什么丢失?
试图执行这个shell脚本。# Proper header for a Bash script.
# Insert code here to print error message and exit if not root.
# Variables are better than hard-coded values.cat /dev/null >