Skip to content

Commit

Permalink
Site updated: 2024-09-04 09:21:06
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangShaw committed Sep 4, 2024
1 parent 75463e6 commit c2a7cd9
Show file tree
Hide file tree
Showing 157 changed files with 7,716 additions and 935 deletions.
8 changes: 7 additions & 1 deletion 2022/09/25/linux-parallel-md/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ <h1 class="description center-align post-title">linux命令——parallel</h1>

<div class="post-date info-break-policy">
<i class="far fa-calendar-check fa-fw"></i>更新日期:&nbsp;&nbsp;
2023-03-20
2024-09-04
</div>


Expand Down Expand Up @@ -475,6 +475,12 @@ <h3 id="–colsep-delimiter"><a href="#–colsep-delimiter" class="headerlink" t
<span class="token assign-left variable">f1</span><span class="token operator">=</span>A <span class="token assign-left variable">f2</span><span class="token operator">=</span>B
<span class="token assign-left variable">f1</span><span class="token operator">=</span>C <span class="token assign-left variable">f2</span><span class="token operator">=</span>D<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code></pre>

<h2 id="–joblog-与-–resume"><a href="#–joblog-与-–resume" class="headerlink" title="–joblog 与 –resume"></a>–joblog 与 –resume</h2><p>可以记录每个任务的状态。在执行任务时,添加 –joblog 选项,并指定一个日志文件。该日志文件将记录所有任务的执行情况,包括成功或失败的状态。</p>
<pre class="line-numbers language-bash" data-language="bash"><code class="language-bash">parallel --joblog joblog.txt <span class="token operator">&lt;</span>commands<span class="token operator">&gt;</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<p>当你需要中断并稍后继续任务时,可以使用 –resume 选项,它会基于 –joblog 文件中的信息,只重新运行失败的或未完成的任务。</p>
<pre class="line-numbers language-bash" data-language="bash"><code class="language-bash">parallel --resume --joblog joblog.txt <span class="token operator">&lt;</span>commands<span class="token operator">&gt;</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<h1 id="parallel-与-xargs-管道连用"><a href="#parallel-与-xargs-管道连用" class="headerlink" title="parallel 与 xargs 管道连用"></a>parallel 与 xargs 管道连用</h1><pre class="line-numbers language-bash" data-language="bash"><code class="language-bash">$ <span class="token function">find</span> ./ -name <span class="token string">'*.txt'</span> <span class="token operator">|</span> parallel <span class="token function">xargs</span> -n <span class="token number">1</span> <span class="token function">grep</span> <span class="token string">'target'</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<h1 id="parallel-与-awk-连用"><a href="#parallel-与-awk-连用" class="headerlink" title="parallel 与 awk 连用"></a>parallel 与 awk 连用</h1><p>这有一个实用帖子<a target="_blank" rel="noopener" href="https://blog.csdn.net/hahoo2009/article/details/95380026">GNU Parallel + AWK: 让你的文本处理飞起来</a> </p>
Expand Down
34 changes: 20 additions & 14 deletions 2024/07/11/PaperRead-CLIP-moethod/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -845,18 +845,17 @@ <h3 id="Reactive-nucleosides-and-chemical-crosslinking"><a href="#Reactive-nucle
<article id="prenext-posts" class="prev-next articles">
<div class="row article-row">

<div class="article col s12 m6" data-aos="fade-up" data-aos="fade-up">
<div class="article col s12 m6" data-aos="fade-up">
<div class="article-badge left-badge text-color">
<i class="far fa-dot-circle"></i>&nbsp;本篇
</div>
<i class="fas fa-chevron-left"></i>&nbsp;上一篇</div>
<div class="card">
<a href="/2024/07/11/PaperRead-CLIP-moethod/">
<a href="/2024/08/03/wetlab-spCas9KO/">
<div class="card-image">


<img src="/medias/featureimages/8.jpg" class="responsive-img" alt="PaperRead-CLIP-moethod">
<img src="/medias/featureimages/13.jpg" class="responsive-img" alt="wetlab-spCas9KO">

<span class="card-title">PaperRead-CLIP-moethod</span>
<span class="card-title">wetlab-spCas9KO</span>
</div>
</a>
<div class="card-content article-content">
Expand All @@ -866,23 +865,30 @@ <h3 id="Reactive-nucleosides-and-chemical-crosslinking"><a href="#Reactive-nucle

</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2024-07-11
</span>
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2024-08-03
</span>
<span class="publish-author">

<i class="fas fa-user fa-fw"></i>
梁绍波
<i class="fas fa-bookmark fa-fw icon-category"></i>

<a href="/categories/wetlab/" class="post-category">
wetlab
</a>


</span>
</div>
</div>


<div class="card-action article-tags">

<a href="/tags/CLIP/">
<span class="chip bg-color">CLIP</span>
<a href="/tags/Cas9/">
<span class="chip bg-color">Cas9</span>
</a>

<a href="/tags/KO/">
<span class="chip bg-color">KO</span>
</a>

</div>
Expand Down
Loading

0 comments on commit c2a7cd9

Please sign in to comment.