积极的六边形战士G了
积极的六边形战士G了
全部文章
分类
归档
标签
去牛客网
登录
/
注册
积极的六边形战士G了的博客
全部文章
(共30篇)
题解 | #打印每一行出现的数字个数#
#!/bin/bash awk -F '[1,2,3,4,5]' 'BEGIN{sum=0}{ for (i=1;i<=NR;++i){if (i==NR){ print "line"i" number: "NF-1;sum+=...
2023-08-21
0
203
题解 | #转置文件的内容#
#!/bin/bash awk '{print $1}' ./nowcoder.txt| tr '\n' ' ' echo awk '{print $2}' ./nowcoder.txt| tr '\n' ' '
2023-08-21
0
239
题解 | #第二列是否有重复#
#!/bin/bash awk '{print $2}' ./nowcoder.txt|sort|uniq -c|sort|tail -n2
2023-08-21
0
170
题解 | #统计每个单词出现的个数#
#!/bin/bash cat ./nowcoder.txt|xargs -n1|sort|uniq -c|sort|awk '{print $2,$1}'
2023-08-21
0
365
题解 | #统计所有进程占用内存百分比的和#
#!/bin/bash awk 'BEGIN{sum=0}{sum+=$4}END{print sum}' ./nowcoder.txt
2023-08-20
0
373
题解 | #打印字母数小于8的单词#
#!/bin/bash awk '{for(i=1;i<=NF;i++){if(length($i)<8){print $i}}}' ./nowcoder.txt
2023-08-20
1
300
题解 | #打印空行的行号#
#!/bin/bash awk '/^$/ {print NR}' ./nowcoder.txt /^$/ 代表空行NR 行号
2023-08-20
0
287
题解 | #Where in 和Not in#
select device_id, gender, age, university, gpa from user_profile where university in ('北京大学', '复旦大学', '山东大学')
2023-08-15
2
892
题解 | #用where过滤空值练习#
select device_id, gender, age, university from user_profile where age is not NULL
2023-08-15
0
199
题解 | #查询结果限制返回行数#
select device_id from user_profile order by id limit 2
2023-08-15
0
130
首页
上一页
1
2
3
下一页
末页