<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>bioinfoer - Shell语言</title>
    <link>https://bioinfoer.com/forum.php?mod=forumdisplay&amp;fid=73</link>
    <description>Latest 20 threads of Shell语言</description>
    <copyright>Copyright(C) bioinfoer</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 25 Jun 2026 15:34:28 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://bioinfoer.com/static/image/common/logo_88_31.gif</url>
      <title>bioinfoer</title>
      <link>https://bioinfoer.com/</link>
    </image>
    <item>
      <title>运行shell脚本时报错&quot;[[ : not found&quot;解决方法</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=555</link>
      <description><![CDATA[背景
装rust探针时，遇到的sh脚本执行错误
脚本为：
# get_architecture
arch=$(uname -m)
# 设置 ARCHITECTURE 变量
if [[ $arch == &amp;quot;aarch64&amp;quot; ]]; then
    ARCHITECTURE=&amp;quot;aarch64&amp;quot;
elif [[ $arch == &amp;quot;x86_64&amp;quot; ]]; then
    ARCHITECTURE=&amp;quot;x86_64&amp;quot]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Mon, 30 Dec 2024 02:00:02 +0000</pubDate>
    </item>
    <item>
      <title>SHELL8 统计所有进程占用内存百分比的和</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=544</link>
      <description><![CDATA[描述
假设 nowcoder.txt 内容如下：
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.4  77744  8332 ?        Ss    2021   1:15 /sbin/init noibrs splash
root         2  0 ...]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 13:17:06 +0000</pubDate>
    </item>
    <item>
      <title>SHELL7 打印字母数小于8的单词</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=543</link>
      <description><![CDATA[描述
写一个bash脚本以统计一个文本文件nowcoder.txt中字母数小于8的单词。
示例:
假设 nowcoder.txt 内容如下：
how they are implemented and applied in computer

你的脚本应当输出：
how
they
are
and
applied
in

说明:
不用担心你输出的空格以及换行的问题
 ...]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 13:10:30 +0000</pubDate>
    </item>
    <item>
      <title>SHELL6 去掉空行</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=542</link>
      <description><![CDATA[描述
写一个 bash脚本以去掉一个文本文件nowcoder.txt中的空行
示例:
假设nowcoder.txt 内容如下：
abc

567


aaa
bbb



ccc

你的脚本应当输出：
abc
567
aaa
bbb
ccc]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 13:07:54 +0000</pubDate>
    </item>
    <item>
      <title>SHELL5 打印空行的行号</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=541</link>
      <description><![CDATA[描述
编写一个shell脚本以输出一个文本文件nowcoder.txt中空行的行号（空行可能连续，从1开始输出）
示例:
假设 nowcoder.txt 内容如下：
a
b

c

d

e


f

你的脚本应当输出：
3
5
7
9
10

 ...]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 13:05:11 +0000</pubDate>
    </item>
    <item>
      <title>SHELL4 输出第5行的内容</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=540</link>
      <description><![CDATA[描述
编写一个bash脚本以输出一个文本文件nowcoder.txt中第5行的内容。
示例:
假设 nowcoder.txt 内容如下：
welcome
to
nowcoder
this
is
shell
code

你的脚本应当输出：
is]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 13:01:25 +0000</pubDate>
    </item>
    <item>
      <title>SHELL3 输出 0 到 500 中 7 的倍数</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=539</link>
      <description><![CDATA[描述
写一个 bash脚本以输出数字 0 到 500 中 7 的倍数(0 7 14 21...)的命令]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 12:53:57 +0000</pubDate>
    </item>
    <item>
      <title>SHELL2 打印文件的最后5行</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=538</link>
      <description><![CDATA[描述
查看日志的时候，经常会从文件的末尾往前查看，请你写一个bash shell脚本以输出一个文本文件nowcoder.txt中的最后5行。
示例:
假设 nowcoder.txt 内容如下：
#include&amp;lt;iostream&amp;gt;
using namespace std;
int main()
{
int a = 10;
int b = 100;
cout &amp;lt;&amp;lt;  ...]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 12:50:49 +0000</pubDate>
    </item>
    <item>
      <title>SHELL1 统计文件的行数</title>
      <link>https://bioinfoer.com/forum.php?mod=viewthread&amp;tid=537</link>
      <description><![CDATA[描述
编写一个shell脚本以输出一个文本文件nowcoder.txt中的行数
示例:
假设 nowcoder.txt 内容如下：
#include &amp;lt;iostream&amp;gt;
using namespace std;
int main()
{
    int a = 10;
    int b = 100;
    cout &amp;lt;&amp;lt; &amp;quot;a + b:&amp;quot; &amp;lt;&amp;lt; a + b &amp;lt;&amp;lt; en ...]]></description>
      <category>Shell语言</category>
      <author>生信喵</author>
      <pubDate>Thu, 12 Dec 2024 12:40:01 +0000</pubDate>
    </item>
  </channel>
</rss>