diff --git a/challenges.yaml b/challenges.yaml index e8442def5..377d61c51 100644 --- a/challenges.yaml +++ b/challenges.yaml @@ -487,4 +487,15 @@ - 17.137.186.194 - 2.71.250.27 - 28.151.137.59 + - slug: check_if_same_files + version: 1 + author: cmdchallenge + disp_title: Check if given files are the same. + example: "if [[ `diff test1.bin test2.bin` ]]; then echo 'Files are different';else echo 'Files are the same'; fi" + description: | + test1.bin and test2.bin are two given files. Print "Files are the same" if both the files are the same and "Files are different" otherwise + expected_output: + order: false + lines: + - Files are different ########### END INTERMEDIATE diff --git a/var/challenges/check_if_same_files/test1.bin b/var/challenges/check_if_same_files/test1.bin new file mode 100644 index 000000000..77647542c Binary files /dev/null and b/var/challenges/check_if_same_files/test1.bin differ diff --git a/var/challenges/check_if_same_files/test2.bin b/var/challenges/check_if_same_files/test2.bin new file mode 100644 index 000000000..1439b44a0 Binary files /dev/null and b/var/challenges/check_if_same_files/test2.bin differ