並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 6 件 / 6件

新着順 人気順

ワンライナーの検索結果1 - 6 件 / 6件

  • One-liners | Basic | Cheat sheet | Linux Command Library

    $ wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com

      One-liners | Basic | Cheat sheet | Linux Command Library
    • GitHub - onceupon/Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance.

      I am glad that you are here! I was working on bioinformatics a few years ago and was amazed by those single-word bash commands which are much faster than my dull scripts, time saved through learning command-line shortcuts and scripting. Recent years I am working on cloud computing and I keep recording those useful commands here. Not all of them is oneliner, but i put effort on making them brief an

        GitHub - onceupon/Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance.
      • ワンライナーで CSV に対して SQLite クエリを実行する - アルパカの徒然文

        One-liner for running queries against CSV files with SQLite という記事で紹介されていた、ワンライナーを使って CSV ファイルに対して SQL クエリを実行する方法。 $ sqlite3 :memory: -cmd '.mode csv' -cmd '.import taxi.csv taxi' \ 'SELECT passenger_count, COUNT(*), AVG(total_amount) FROM taxi GROUP BY passenger_count' ソース元に記述されてる通り、taxi.csv を GitHub からダウンロードして試すことができる。7z で圧縮されていて解凍する必要がある。 SQLite は通常ストレージディスク(SSD とか)上に保存して利用するのが一般的だが、SQLite 側で用意さ

          ワンライナーで CSV に対して SQLite クエリを実行する - アルパカの徒然文
        • Windowsのcmd.exeからLinuxコマンドを使う際はエスケープ文字の使い方を覚える (1/2)

          wsl.exeを使うことで、cmd.exeからLinuxのコマンドを利用できるようになる。このときにcmd.exeのパイプ記号(バーチカルバー)「|」を使って、Win32側とLinux側のコマンドの出力を異なる環境側で処理することも可能だ。 単に相手側のコマンドを起動したり、パイプでデータを渡すことは難しくないが、相手側でもパイプ処理をしたり、複数のコマンドを起動させるとなると、特殊文字のエスケープなどが必要になる。 ここでは、cmd.exeからWSLを使いLinuxコマンドと連携させる方法を解説する。使い慣れたcmd.exeを使い、必要に応じてLinuxのコマンドを使いたいと思うこともある。cmd.exe側からLinux側のパイプ処理などを使うには、cmd.exeの特殊文字のエスケープが必要だが、規則は単純でそれほど難しくない。 なお、cmd.exeからWSL側のコマンドを起動するには、

            Windowsのcmd.exeからLinuxコマンドを使う際はエスケープ文字の使い方を覚える (1/2)
          • GitHub - hauntsaninja/pyp: Easily run Python at the shell! Magical, but never mysterious.

            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 - hauntsaninja/pyp: Easily run Python at the shell! Magical, but never mysterious.
            • psqlの-cオプションなら、ワンライナー程度の内容なら確認できる - Bye Bye Moore

              psqlの-cオプションなら、ワンライナー程度の内容なら確認することができます。 $ psql mydb -c "select city from weather" city --------------- San Francisco (1 row)例の魔界めいたバックスラッシュ記法も。とりあえず確認するときには有効ですね $ psql mydb -c "\d" List of relations Schema | Name | Type | Owner --------+---------+-------+------------ public | cities | table | shuzo_kino public | weather | table | shuzo_kino (2 rows) $ psql mydb -c "\d weather" Table "public.weat

                psqlの-cオプションなら、ワンライナー程度の内容なら確認できる - Bye Bye Moore
              1