the key logic is to use the for loop to log the number which can be multiplied by 7, you can start with the js code below:

function multiple(i) {
for (let i = 0; i < 500; i++) {
  if (i % 7 == 0) {
    console.log(i);
  }

}
}

multiple(500)

Then conver this logic to the shell language:

Clike loop

Shell 流程控制

[syntax error in conditional expression: unexpected token `;']

[BASH Syntax error near unexpected token 'done' duplicate]