Bash: How do I display the second field of a string and find and display the average of the numbers in the next fields?

前端 未结 0 1799
[愿得一人]
[愿得一人] 2020-11-29 02:17

I have a file called user-list.txt

I want to display the output in this manner

I tried to do this by using this script:

#!/bin/bash
for n in {2.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题