diff options
Diffstat (limited to 'mypath/compare.sh')
-rwxr-xr-x | mypath/compare.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mypath/compare.sh b/mypath/compare.sh deleted file mode 100755 index 2643b42..0000000 --- a/mypath/compare.sh +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | file1="file1.txt" | ||
4 | file2="file2.txt" | ||
5 | |||
6 | diff_output=$(diff "$file1" "$file2") | ||
7 | |||
8 | if [ -z "$diff_output" ]; then | ||
9 | echo "两个文件完全一致" | ||
10 | else | ||
11 | echo "两个文件不完全一致" | ||
12 | echo "$diff_output" | ||
13 | fi | ||
14 | |||