Hi all i have this assignment to do but i get this error message when i execute my program:
line 6: syntax error near unexpected token `do
And here's my code:
while [ -n $1 ]
list= ls $1
for i in $list
cat $i >> basename $i
I know it's a stupid mistake but i can't figure it out.