Computer scienceSystem administration and DevOpsCommand lineBash syntax

Loops and sequences

Two sequences

Report a typo

Run the conditional for loop with the input range from 1 to 10 and set a condition to skip the values from 3 to 7.

Tip: You can combine two seq commands like this: for i in $(seq 2) $(seq 3).

Write a program in Shell
#!/usr/bin/env bash
function solve() {
for i in ???; do
???
done
}
___

Create a free account to access the full topic