题目内容

用awk模拟命令”paste -sd,”$ cat addr.txtHello WorldHow are youThis game is goodToday is sunny12345You are funny# 将所有行用逗号','拼接起来$ paste -sd, addr.txtHello World,How are you,This game is good,Today is sunny,12345,You are funny# 请确保合并后行尾没有逗号','且行尾有换行$ awk ____________________ addr.txtHello World,How are you,This game is good,Today is sunny,12345,You are funny$ 如果输入仅有一行,也要确保合并后行尾没有逗号','$ printf 'foo' | paste -sd,foo$ printf 'foo' | awk ____________________foo

查看答案
更多问题

为文件scores.csv添加一列,列名为GP,该列的值为数学成绩(权重50%)、物理成绩(权重25%)和化学成绩(权重25%)加权和$ cat scores.csvName,Maths,Physics,ChemistryBlue,67,46,99Lin,78,83,80Er,56,79,92Cy,97,98,95Ort,68,72,66Ith,100,100,100$ awk ____________________ scores.csvName,Maths,Physics,Chemistry,GPBlue,67,46,99,69.75Lin,78,83,80,79.75Er,56,79,92,70.75Cy,97,98,95,96.75Ort,68,72,66,68.5Ith,100,100,100,100

抽取文件sample.txt中所有包含“do”且只有两行的段落$ cat sample.txtHello WorldGood dayHow are youJust do-itBelieve itToday is sunnyNot a bit funnyNo doubt you like it tooMuch ado about nothingHe he he# 要求输出的尾部不能有多余的空行$ awk '____________________'Just do-itBelieve itMuch ado about nothingHe he he

‏ NoSQL数据库的类型包括:

A. 键值数据库
B. 图数据库
C. 列族数据库
D. 文档数据库

使用____函数可以确定集合内有多少个元素

A. long()
B. count()
C. len()
D. lens()

答案查题题库