Compare every character of the output to the example provided in your exercise PDF. If a single space or digit is different, the "piece" will fail the evaluation. Does your specific subject require a specific file size different timestamp than the one used in the example above?
Use ls -l to confirm the file exists and has the correct permissions and filename.
The exercise, often titled "Oh yeah, mooore..." in the 42 Piscine curriculum , is a practical test of your ability to manipulate file permissions, ownership, and timestamps using the command line. Exercise Objective shell00 ex02
To generate the required file, you should create a shell script (e.g., create_exo2.sh
Wait. Is that it? No. If that worked, the exercise wouldn't exist. The trick is that the correction system (moulinette) does not give you a static msg file. It provides a file that contains the text who am i . Compare every character of the output to the
sh msg
is typically an exercise designed to test a student's ability to create, navigate, and manipulate files and directories using only a Unix-like shell (such as bash). It usually requires the creation of a specific file, often named ex02.txt or similar, within a specific directory structure. Use ls -l to confirm the file exists
sh -c "$(cat msg)"