Mkdir

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

  1. The problem statement, all variables and given/known data:
    Do the procedure, which if there are 5 parameters then it creates 4 directories with names of 4 parameters, in those directories it creates files with the same name, and in those files, the fifth parameter must be saved.

  2. Relevant commands, code, scripts, algorithms:
    for
    if

  3. The attempts at a solution (include all code and scripts):

for k in 1,2,3,4
do
if $# -eq=5
then
mkdir $5>$k/$k
else
echo blablabla
fi
done
  1. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
    AGH,Cracow,Poland

Please, help me i don't know what to do.

Please finish filling out the form. Add the name of your professor and the course number (the course title would also be nice).

What shell are you using for this course?

We cant be of much help not knowing your shell and system...
Do you have to use for (??) since you are asked to do something only if 5 arguments are given ( and so obsiously you will need if )

for k in 1,2,3,4
do

Why? (trying to understand your point of vue...)