What output does the command seq 1 5 20 produce?
What output does the command seq 1 5 20 produce?
The command 'seq 1 5 20' generates a sequence starting at 1, incrementing by 5, and stopping before exceeding 20. The output would be the numbers 1, 6, 11, and 16, as these are the numbers produced by adding 5 to the previous number in the sequence, stopping before surpassing 20.
Correct answer should be: 1 6 11 16
Typo options....the correct options are A. 1 5 10 15 B. 1 6 11 16 C. 1 234 D. 2 345 E. 5 10 15 20 so the answer is B.
Font: https://vceguide.com/what-output-will-the-command-seq-1-5-20-produce/
cheers, B indeed.
output will be 1+5 and it starts from 1 - don't go over 20 1 1+5=6 6+5=11 11+5=16 16+5=21 ( over 20 ) correct : 1 6 11 16
seq – seq [OPTION]… FIRST INCREMENT LAST Print numbers from FIRST to LAST, in steps of INCREMENT. output like that 1 6 11 16
[root@centos7 ~]# seq 1 5 20 1 6 11 16
Correct the answers! Not just deleting my comment. Why do we pay you.
seq Shows a sequence, with 3 parameters: initial: 1 Increment: 5 Final: 20 1 6 11 16
A B and C are answer 1?