タグ

shellに関するkomlowのブックマーク (19)

  • Writing Safe Shell Scripts

    Writing shell scripts leaves a lot of room to make mistakes, in ways that will cause your scripts to break on certain input, or (if some input is untrusted) open up security vulnerabilities. Here are some tips on how to make your shell scripts safer. Don't The simplest step is to avoid using shell at all. Many higher-level languages are both easier to write the code in in the first place, and avoi

    komlow
    komlow 2020/02/03
  • Build Your Own Shell using Rust

    Build Your Own Shell using Rust 2018-11-17 This is a tutorial on building your own shell using Rust, in the spirit of the build-your-own-x list. Creating a shell is a great way to understand how the shell, terminal emulator, and OS work together. What is a shell? A shell is a program which allows you to control your computer. It does this largely by making it easy to launch other applications. But

  • 分散シェルまとめ - Qiita


    使使pdshgrepcsshx調gxp使 便 pdshssh'tail -f'便 apitail -f
    分散シェルまとめ - Qiita
    komlow
    komlow 2017/04/03
  • UNIX & Linux コマンド・シェルスクリプト リファレンス

    目次 当サイトについて bash シェルスクリプト入門 -シェルスクリプトのいろは- コマンド Tips シェルスクリプト Tips 変数を使用する 配列を使用する 入力と出力 if 文と test コマンド for 文の使用方法 while 文の使用方法 case 文の使用方法 関数の使用方法 引数を処理する 終了ステータス シグナルと trap コマンド フィルタを使用した文字列操作 1 フィルタを使用した文字列操作 2 日付を取得する 文字コードと改行コード シェルスクリプトのデバッグ AWK リファレンス (Deprecated) シェルスクリプト ライブラリ 『ether.sh』 お知らせ Bluesky を始めました @sunone.me 変更履歴 2023.10.07 ページ内リンクを修正した。 2021.02.01 このサイトに「もう 1 ページ追加しよう」と思ってから、も

    UNIX & Linux コマンド・シェルスクリプト リファレンス
  • シェルスクリプトの書き方


    12TwitterPOSIX3 調 ?SunOS4, Solaris, HP-UX, IBM AIX, FreeBSD, OpenBSD, Linux
    komlow
    komlow 2017/01/13
  • Googleの肩に乗ってShellコーディングしちゃおう - Qiita


     GoogleShell Shell Google Python/C++/Java/Rdocument https://github.com/google/styleguide Shell  http://google.github.io/styleguide/shell.xml cpplintXML cpplintc++ commitshelllint
    Googleの肩に乗ってShellコーディングしちゃおう - Qiita
    komlow
    komlow 2017/01/10
  • The Xonsh Shell

    XONSH is a Python-powered shell Xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt. The language is a superset of Python 3.6+ with additional shell primitives that you are used to from Bash and IPython. It works on all major systems including Linux, OSX, and Windows. Xonsh is meant for the daily use of experts and novices. Install Docs Github Donate What is Xo

    The Xonsh Shell
    komlow
    komlow 2016/05/11
  • シェルスクリプトを極める

    VSCodeで作るPostgreSQL開発環境 (第25回 PostgreSQLアンカンファレンス@オンライン 発表資料) 2021年7月6日 株式会社NTTデータ 技術開発部 先進コンピューティング技術センタ 加藤 慎也

    シェルスクリプトを極める
    komlow
    komlow 2014/12/30
  • Big Sky :: kill で立つハッカー、シェルを濁す

    shell - 立つハッカー、シェルを濁さず - Qiita おことわり このTipsは不作法だとして異論が出るかもしれないが、私自身がよくやるのでここで公開してみる。それは一体何かというと…… コマンドヒストリーが残るのイヤだ! と思うことってよくないだろうか... http://qiita.com/richmikan@github/items/2c90ddb778a7d4948324 man bash によると HISTFILE The name of the file in which command history is saved (see HIS‐ TORY below).  The default value is ~/.bash_history.   If  unset, the  command  history  is  not  saved  when an inte

    Big Sky :: kill で立つハッカー、シェルを濁す
    komlow
    komlow 2014/09/01
  • シェルスクリプトを公開するとき, コマンド前にバックスラッシュをつけるべき - Shohei Yoshida's Diary

    oh-my-zsh の環境で、peco-select-history が動かない - Qiita 追記 2014年 7月 7日 シェルスクリプトと書いてしまい漠然すぎましたが, ここで述べている ことが問題になるのは, .bashrc, .zshrcに関数, alias設定等がコピー される場合や, sourceコマンドでファイルを読み込む場合です. non-interactiveに実行されるシェルスクリプトについては特に 問題ないです. 問題点 そうしないと, 公開されたコマンドを自分の環境に導入した場合, aliasにより正しく動かなく場合があるためです. aliasをつけがちな コマンド(ls, grep等)がシェルスクリプトに含まれていると 特に問題が起こる可能性が高くなります. 例 pecoを使って カレントディレクトリのファイルをページャで開く 例を考えてみましょう. 単純に考

    シェルスクリプトを公開するとき, コマンド前にバックスラッシュをつけるべき - Shohei Yoshida's Diary
    komlow
    komlow 2014/07/03
  • サイト閉鎖のお知らせ | ASCII Books

    ASCII Booksのサイトをご利用いただき、ありがとうございます。 2016年12月6日をもちまして、サイトを閉鎖させていただくことになりました。 今までサイトをご利用いただき、ありがとうございました。 アスキー・メディアワークスを引き続き、よろしくお願いいたします。

    komlow
    komlow 2014/06/06
    “フルスクラッチから1日でCMSを作る”ヤバそう
  • The 3 Good Habits for Shell Beginners

    「シェル苦手な人に、今日から始めて欲しい3つの考え方」 @nanapi勉強会 vol2 - Shellの活用でこれだけ毎日が便利になる http://nanapi.doorkeeper.jp/events/11514

    The 3 Good Habits for Shell Beginners
    komlow
    komlow 2014/05/29
  • https://qiita.com/geta6/items/199faca823e84026c10a

    komlow
    komlow 2013/12/23
  • fish shell

    Finally, a command line shell for the 90s fish is a smart and user-friendly command line shell for Linux, macOS, and the rest of the family. fish will delight you with features like tab completions and syntax highlighting that just work. It will make you exclaim "Of course fish does that!".

  • 30 Handy Bash Shell Aliases For Linux / Unix / MacOS

    nixCraft → Tutorials → Linux → Awesome bash aliases for Linux and Unix users to increase productivity An bash shell alias is nothing but the shortcut to commands. The alias command allows the user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display a list of all defined aliases. You can add user-defined aliases to ~/.

    30 Handy Bash Shell Aliases For Linux / Unix / MacOS
    komlow
    komlow 2012/08/31
    便利
  • shell script を書くときの tips 2つ(初心者向け) - tokuhirom's blog


    shell script 便 tips 2 autodie set -e便 #!/bin/sh set -e perl -e 'die' echo SHOULD NOT REACH HERE % ./hoge.sh Died at -e line 1. % echo $? 255 便   until  while if &&  ||  !
    komlow
    komlow 2012/07/24
  • tanasinn terminal emurator


    Gecko (HTML Canvas + XUL) Mac / FreeBSD / Linux(Ubuntu) / Windows(XP/Vista/7) + Cygwin (POSIXPython)     I/O  IME
  • Zsh is your friend - Mike Grouchys Blog

    Zsh is your friendI don't know if you know this, but ZShell is your friend, you might not know it yet, but its true. I know what you are thinking , "whats wrong with Bash?", nothing, except its not Zsh. Its not that Bash is a bad guy, I don't want to put him down, but if we were picking teams, Bash would be last picked in gym class. He isn't very versatile and he doesn't do anything particularly g

    Zsh is your friend - Mike Grouchys Blog
  • Relational shell programming

    Relational algebra is a theory for manipulating relations whose power is equivalent to SQL and relational calculus. Remarkably, relational algebra has only six primitive operations. I define the six primitives below, but if you're looking for a comprehensive work on relational theory, particularly as it relates to modern databases, I recommend Date's SQL and Relational Theory: Relations in Unix Ma

  • 1