FunctionRacerProblemsRace

Rename Them All

MediumBasha shell script

Rename every file in this folder whose name ends in .txt so that it ends in .md instead: plan.txt becomes plan.md. Some names have spaces in them. Files of other kinds keep their names.

Example 1

plan.txt
p
to do.txt
t
photo.png
x
ends as
== ./photo.png
x
== ./plan.md
p
== ./to do.md
t

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