FunctionRacerProblemsRace

If the File Is There

MediumBasha shell script

If this folder has a file named config.txt, print its first line. If it does not, print no config.

Example 1

config.txt
mode=fast
size=3
notes.txt
x
prints
mode=fast

Example 2

notes.txt
x
prints
no config

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Bash problems