我试图覆盖C中的文件的内容,目前我有: FILE* file = fopen("filename.txt", "r+");
fprintf(file, "%d", 1); // regardless of what's in the file, i want to clear it and put 1 in there
...
// legacy code somewhere else in
我试图从ServerA传输数据(存档/压缩)到ServerB并检查所有数据传输时两台服务器中数据的大小。我的脚本在下面给出。 下面脚本在服务器B进行解压缩的数据和checkes数据大小(稍后使用) #!/bin/bash
#Decompresses file and checks sizes
cd /home
touch listB
tar -zxvf datafiles.tar.gz