谁能帮我解决这个问题我最近开始学习Unix
name class physics chemistry maths
mayank xi 55 89 38
bhawna xi 56 65 85
ashish xi 69 96 69
ashankar xii 84 86 97
ankush xi 87 68 85
meghna xi 69 78 84
chaitra xi 63 87 48
pavithra xii 72 48 59
akshat xii 87 84 67
somesh xii 88 82 57
考虑以上数据是制表符分隔文件。您必须根据所提供的数据准备 3 份报告作为制表符分隔文件
classwise_data.txt
class_xii.txt
class_xi.txt
您的脚本应生成这三个制表符分隔的文件作为给定的名称(带空格),并且应具有右侧给出的数据。
classwise data.txt
class no of students phy avg che avg maths avg
xi 6 66.5 80.5 68.16667
Xii 4 82.75 75 70
class xii.txt
name class physics chemistry maths avg
ashankar xii 84 86 97 89
pavithra xii 72 48 59 59.66666667
akshat xii 87 84 67 79.33333333
somesh xii 88 82 57 75.66666667
class xi.txt
name class physics chemistry maths avg
mayank xi 55 89 38 60.66666667
bhawna xi 56 65 85 68.66666667
ashish xi 69 96 69 78
ankush xi 87 68 85 80
meghna xi 69 78 84 77
chaitra xi 63 87 48 66