摘要:
描述写一个 bash脚本以输出一个文本文件 nowcoder.txt中空行的行号,可能连续,从1开始 示例:假设 nowcoder.txt 内容如下:ab c d e f 你的脚本应当输出:357910 方法1:for循环遍历+判断【不对】 #!/bin/bash let j=0 for i in 阅读全文
摘要:
描述经常查看日志的时候,会从文件的末尾往前查看,于是请你写一个 bash脚本以输出一个文本文件 nowcoder.txt中的最后5行示例:假设 nowcoder.txt 内容如下: #include<iostream> using namespace std; int main() { int a 阅读全文
摘要:
描述写一个 bash脚本以输出一个文本文件 nowcoder.txt中的行数示例:假设 nowcoder.txt 内容如下: #include <iostream> using namespace std; int main() { int a = 10; int b = 100; cout << 阅读全文
摘要:
〇、概述 1、内容 选择(双分支、多分支) 一、条件函数 1、计算25岁以上和以下的用户数量 CASE THEN END多分支选择 SELECT (CASE WHEN age>=25 THEN '25岁及以上' ELSE '25岁以下' END) AS age_cut, COUNT(*) AS nu 阅读全文