<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>shell 彙整 - 泰克哪裡去</title>
	<atom:link href="https://tech.uccu.website/tag/shell/feed" rel="self" type="application/rss+xml" />
	<link>https://tech.uccu.website/tag/shell</link>
	<description>一個科技相關的隨手記錄網站</description>
	<lastBuildDate>Sun, 18 Oct 2026 15:58:45 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">119574712</site>	<item>
		<title>DevOps / SRE 需不需要會寫程式？</title>
		<link>https://tech.uccu.website/devops-sre-programming-skills.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=devops-sre-programming-skills</link>
					<comments>https://tech.uccu.website/devops-sre-programming-skills.html#respond</comments>
		
		<dc:creator><![CDATA[鳴人]]></dc:creator>
		<pubDate>Sat, 24 Oct 2026 04:00:00 +0000</pubDate>
				<category><![CDATA[DevOps / SRE 技術]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[SRE]]></category>
		<category><![CDATA[程式設計]]></category>
		<guid isPermaLink="false">https://tech.uccu.website/?p=2241</guid>

					<description><![CDATA[<p>DevOps / SRE 需要程式能力，但不一定每天開發商業功能。從 Shell、Python、API、JSON 到可維護的自動化工具，理解實務上的 Coding 需求。</p>
<p>這篇文章 <a href="https://tech.uccu.website/devops-sre-programming-skills.html">DevOps / SRE 需不需要會寫程式？</a> 最早出現於 <a href="https://tech.uccu.website">泰克哪裡去</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>需要，但要寫到什麼程度，得看工作的內容。</p>
<p>有的職務以 Script 和自動化為主，有的則會開發內部工具或平台。</p>
<p><span id="more-2241"></span></p>
<h2>從日常自動化開始</h2>
<p>至少建議學 Shell Script、Python，或其他一門程式語言。</p>
<p>工作裡會遇到 API、File Processing、JSON、Log Parsing、Automation、CLI、CI/CD，需要能用程式把這些事情接起來。</p>
<p>再往下做，就會需要 Modular Code、Testing、Error Handling，以及 API、SDK、Git、Package Management 等能力。</p>
<p>程式要能維護，不能只求這次跑得動。</p>
<p>高階 SRE 也可能大量開發 Internal Tools、Automation Platform、Operators、Controllers、Deployment Systems 和 Monitoring Systems。</p>
<p>Google 的 SRE 定義本身就很強調 Software Engineering；Google 甚至把 SRE 的 operational work 設下 50% 上限，要求大量時間投入工程專案與自動化。</p>
<h2>和 RD 寫的東西差在哪？</h2>
<p>SRE 需要程式能力，但不代表「你必須像 RD 一樣每天寫商業邏輯。」</p>
<p>RD 的 Coding Focus 常放在 Feature、Business Logic、API、Domain Model；SRE 則更常用在 Automation、Tooling、Infrastructure、Reliability、Observability、Deployment 與 Platform。</p>
<p>如果剛開始學，不必先去刷 500 題演算法。可以從 Shell、Python、HTTP API、JSON / YAML、Git、Testing、Debugging 練起，先讓自己能處理工作中的自動化與除錯需求。</p>
<h2>碎碎念(經驗談)</h2>
<p>程式能力這一塊，其實有下面幾個面向：<br />
&#8211; DevOps/SRE職務需求的Script必須看得懂。<br />
&#8211; 公司RD開發使用的程式語言，必須理解它的編譯、啟動方式等。<br />
&#8211; 容器化的映像檔構建與運作方式能夠理解、規劃。</p>
<p>因為現在這個AI時代大多都請AI協助產生程式碼，但是不代表能夠「無腦」的把AI產生的東西用上，所以「看得懂」是首要重點！</p>
<p>也就是說，不以語言的限制所需要會的程式基礎能力是最少必須具備的，再來是「非程式碼」面向的一些概念也需要理解。</p>
<p>&nbsp;</p>
<p><em>本文為個人職涯觀察與經驗分享，不代表所有企業的招聘標準或未來市場一定如此。</em></p>
<p>前一篇：<a href="https://tech.uccu.website/devops-sre-essential-skills.html">DevOps / SRE 需要會什麼？</a></p>
<p>後一篇：DevOps / SRE 可以怎麼用 AI？</p>
<p>歡迎持續追蹤系列文：<a href="https://tech.uccu.website/devops-sre" target="_blank" rel="noopener">DevOps / SRE 學習指南：從職涯探索到實戰技能</a></p>
<p>這篇文章 <a href="https://tech.uccu.website/devops-sre-programming-skills.html">DevOps / SRE 需不需要會寫程式？</a> 最早出現於 <a href="https://tech.uccu.website">泰克哪裡去</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tech.uccu.website/devops-sre-programming-skills.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2241</post-id>	</item>
		<item>
		<title>解決.sh檔案在Container內執行時的換行字元(CRLF/LF)問題</title>
		<link>https://tech.uccu.website/convert-shell-file-end-of-line-sequence-at-dockerfile.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-shell-file-end-of-line-sequence-at-dockerfile</link>
					<comments>https://tech.uccu.website/convert-shell-file-end-of-line-sequence-at-dockerfile.html#respond</comments>
		
		<dc:creator><![CDATA[鳴人]]></dc:creator>
		<pubDate>Tue, 24 Nov 2020 09:47:26 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[crlf]]></category>
		<category><![CDATA[dockerfile]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">https://tech.uccu.website/?p=158</guid>

					<description><![CDATA[<p>如果有在使用Docker並且是建置Linux環境的Image，搭配自行撰寫的shell檔案，有時候會因為版本控 ... <a title="解決.sh檔案在Container內執行時的換行字元(CRLF/LF)問題" class="read-more" href="https://tech.uccu.website/convert-shell-file-end-of-line-sequence-at-dockerfile.html" aria-label="Read more about 解決.sh檔案在Container內執行時的換行字元(CRLF/LF)問題">閱讀全文</a></p>
<p>這篇文章 <a href="https://tech.uccu.website/convert-shell-file-end-of-line-sequence-at-dockerfile.html">解決.sh檔案在Container內執行時的換行字元(CRLF/LF)問題</a> 最早出現於 <a href="https://tech.uccu.website">泰克哪裡去</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">如果有在使用Docker並且是建置Linux環境的Image，搭配自行撰寫的shell檔案，有時候會因為版本控管、編輯器(IDE)等雜七雜八的因素，導致在Dockerfile中複製到Image的時候看起來雖然沒問題，但是在Run Container的時候出現因為換行字元(CRLF/LF)導致的錯誤時，除了可以回頭去調整或修改shell檔案，將換行字元從CRLF轉換成LF之外，還有一個更方便的方法，那就是在shell檔案複製到Docker Image的時候再執行轉換的動作。</p>



<p class="wp-block-paragraph">起先我在寫Shell檔案的時候真的是碰到了許多次因為CRLF / LF換行字元的問題，早期都是回頭去修改原始檔案之後再重新Build Image，久了之後實在是覺得很麻煩，某天忽然想到直接在Dockerfile中安裝<em><strong>dos2unix</strong></em>這個套件，在shell檔案複製之後再執行它來將shell檔案的換行字元的問題解決，從此之後就沒有再為了Windows / Unix-like不同環境的換行字元問題而煩惱過了，因此特別用這篇文章簡短記錄一下，也許有人也為了這個問題困擇了一段時間呢！</p>



<h2 class="wp-block-heading">Dockerfile內容參考範例</h2>



<pre class="wp-block-prismatic-blocks"><code class="" data-line="">RUN apt-get install dos2unix;
COPY my-init.sh .
RUN dos2unix my-init.sh
CMD [&quot;bash&quot;, &quot;my-init.sh&quot;]</code></pre>
<p>這篇文章 <a href="https://tech.uccu.website/convert-shell-file-end-of-line-sequence-at-dockerfile.html">解決.sh檔案在Container內執行時的換行字元(CRLF/LF)問題</a> 最早出現於 <a href="https://tech.uccu.website">泰克哪裡去</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tech.uccu.website/convert-shell-file-end-of-line-sequence-at-dockerfile.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">158</post-id>	</item>
	</channel>
</rss>
