<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>やりたいこと 通常VSCodeで開発している限り改行コードはすべてLFになるので意識することはないのだが、 まれにCRLFが混じってしまっているファイルを扱おうとしてバグるケースが有る。 改行コードがLFでないファイルを抽出したい コマンド find . -type f -exec file {} + | grep -v ELF | grep -e &quot;CRLF&quot; -e &quot; CR &quot; find . -type f：カレントディレクトリ以下全ファイルを検索 -exec file {} +：各ファイルのフォーマット情報を取得 grep -v ELF：バイナリファイル（ELF形式）を除外 grep -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20250207%2F1738854938&quot; title=&quot;改行コードがLF（Unix形式）でないテキストファイルを探すコマンド - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-07 00:15:38</published>
  <title>改行コードがLF（Unix形式）でないテキストファイルを探すコマンド</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20250207/1738854938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
