並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 15 件 / 15件

新着順 人気順

SEDの検索結果1 - 15 件 / 15件

  • 【脱sed】いい加減シェルスクリプトで文字列をsedで置換するなんてやめよう - Qiita

    はじめに もう文字列の置換で sed コマンド使うの禁止して良いんじゃないですかね? 言いすぎだとわかってあえて言っていますが。 悪い書き方(外部コマンドに頼る方法) # 変数 line に入ってる文字列を echo コマンドで出力して sed コマンドに渡し、 # sed の s コマンドで "from" を "to" に置換して出力したものを ret 変数で受け取る ret=$(echo "$line" | sed "s/from/to/")

      【脱sed】いい加減シェルスクリプトで文字列をsedで置換するなんてやめよう - Qiita
    • iPhone・Androidで高速に日本語音声入力するためのベストプラクティス

      先日Twitterで「大学生がスマートフォンでレポートを書いている」というツイートが話題になっており、それに対して反応している方達もほぼ全員が「スマートフォンでレポートを書くのは効率が悪い」という前提で話をしていることに大変違和感を覚えました。 なぜなら私はこのブログはもちろん、技術書を執筆するときでさえ主にスマートフォンで下書きをしているからです。 PCを使うのは、ほぼスクリーンショットの撮影と最後の仕上げだけです。 その方が、最初からPCで文字入力するのに比べて圧倒的に効率が良いです。 この記事では、iPhoneとAndroidそれぞれで音声入力を効率よくおこなう方法について解説します。 iPhone・iPadの場合 先に結論から申し上げると、iPhone・iPad・Macの日本語音声入力は、AndroidのGoogle音声入力に比べて認識精度が低く、認識できる単語が少ないです。 仕事

        iPhone・Androidで高速に日本語音声入力するためのベストプラクティス
      • シェル芸人に必要なのは「マスキングテープ」だったのでは

        2020/06/27 第48回シェル芸勉強会LT資料 https://www.youtube.com/watch?v=PIqx9fCSbaU&t=609s

          シェル芸人に必要なのは「マスキングテープ」だったのでは
        • パイプに関係するさまざまなバッファ、ちゃんと意識していますか? - Qiita

          はじめに コマンドをパイプでつなげた時、各コマンドの間にはいくつかのバッファが存在します。そのバッファについてちゃんと意識しているでしょうか? バッファの存在によって各コマンドの実行には分かりづらい変化があります。そのバッファを知らないと罠にハマってしまう・・・かもしれません。 プロセス間のパイプ通信のバッファ まずプロセス間のパイプ通信に存在しているバッファです。多くのコマンドは行単位でデータを処理しますが、一般的にパイプでつなげた各コマンドはそれぞれ処理速度が異なります。処理がすぐに終わるコマンドもあれば時間がかかるコマンドもあります。各コマンドは並列で動作可能ですが必ずしも並列で動作するわけではありません。 一般論としてパイプライン全体の処理にかかる実時間はパイプでつながったコマンドの中で一番遅いコマンドに足を引っ張られます。いくら並列で動作可能と言ってもデータが到着しなければ処理す

            パイプに関係するさまざまなバッファ、ちゃんと意識していますか? - Qiita
          • GitHub - chebykinn/sedmario: NES Super Mario Bros level 1 written in pure sed!

            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              GitHub - chebykinn/sedmario: NES Super Mario Bros level 1 written in pure sed!
            • sedが奏でるプレリュード | スラド IT

              route127曰く、 sedでバッハの平均律クラヴィーア曲集第1巻(WTC Book I)前奏曲ハ長調(BWV846)を演奏するスクリプト「bash.sed」が発表された(github、はてなブックマーク) Linux上での実行方法

              • GitHub - SoptikHa2/desed: Debugger for Sed: demystify and debug your sed scripts, from comfort of your terminal.

                Demystify and debug your sed scripts, from comfort of your terminal. Desed is a command line tool with beautiful TUI that provides users with comfortable interface and practical debugger, used to step through complex sed scripts. Some of the notable features include: Preview variable values, both of them! See how will a substitute command affect pattern space before it runs Step through sed script

                  GitHub - SoptikHa2/desed: Debugger for Sed: demystify and debug your sed scripts, from comfort of your terminal.
                • GitHub - greymd/teip: Masking tape to help commands "do one thing well"

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - greymd/teip: Masking tape to help commands "do one thing well"
                  • GitHub - chmln/sd: Intuitive find & replace CLI (sed alternative)

                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                      GitHub - chmln/sd: Intuitive find & replace CLI (sed alternative)
                    • GitHub - adrianlarion/useful-sed: Useful sed scripts & patterns.

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        GitHub - adrianlarion/useful-sed: Useful sed scripts & patterns.
                      • シェルスクリプトで文字列の分割 (split) と結合 (join) をする時のベストプラクティス - Qiita

                        はじめに CSV のようにカンマ区切りの文字列をそれぞれのフィールドに分割するにはどうするか?というネタです。よく見るネタなのですが、良いとは言えないコードが多いのでまとめたいと思います。 なお例として CSV を扱っていますが、主題は文字列の分割 (split) と結合 (join) なので、ダブルクォートでくくることでカンマや改行も入れられるなどという本気の CSV 対応はしません。仕様が複雑なのでそのようなファイルを扱う場合は別の言語のよく知られたライブラリを使うことをおすすめします。この記事で扱う CSV とは各フィールドがカンマで区切られているというだけのものです。 前提 一行のデータは分割して位置パラメーターに入れる 一行の文字列を分割した結果は、位置パラメータ ($1, $2, $3, ...) に代入するのがおすすめです。位置パラメータは POSIX 準拠(つまり bash

                          シェルスクリプトで文字列の分割 (split) と結合 (join) をする時のベストプラクティス - Qiita
                        • sedでこういう時はどう書く? - Qiita

                          シェルでデータ加工するときSEDをよく使いますが、その利用例と覚え書きです、参考になれば sedコマンドはLinux/Unix/BSD/OSXに標準で入っているので、Macの人なら覚えておくと捗るかも(Linuxとは少し違うのでそこは調べてね?) 当方の利用環境がRedhat系Linuxメインですので、微妙に書式が異なることがありますが、大体の書式は同じはずですので、そこは、ご容赦願います (4/15 ちょっと追加…) Windowsでもsed使いたいという人がいたので、ちょっと追記、以下のサイトからWindows用のバイナリを取得すれば、Windowsでもsedが使えます。WSLなどLinux環境を追加したくない、sedのコマンドだけほしい、PowerShellやプロンプトで使えればいいだけという人にお勧めです。 sed for Windows Site 使用例をいろいろ上げてみる '#

                            sedでこういう時はどう書く? - Qiita
                          • GitHub - lhoursquentin/sed-bin: sed to C translator written in sed

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              GitHub - lhoursquentin/sed-bin: sed to C translator written in sed
                            • Homebrewを用いてGNU系コマンドをインストール(macOS) - Qiita

                              こんにちは。 Homebrew を用いて macOS へ GNU系コマンド をインストールする方法を調べました1 2 3 4。下記で、GNU 版の grep awk gzip tar sed time getopt をインストールできます。

                                Homebrewを用いてGNU系コマンドをインストール(macOS) - Qiita
                              • 今日のsed: 任意の文字列以降の行をすべて出力したい - Qiita

                                cat /tmp/qiita.txt | sed -n '/bar/,$p' bar buzz piyo

                                  今日のsed: 任意の文字列以降の行をすべて出力したい - Qiita
                                1