タグ

2018年6月18日のブックマーク (2件)

  • What does {some strange unix command name} stand for?

    What does {some strange unix command name} stand for? awk = "Aho Weinberger and Kernighan" This language was named by its authors, Al Aho, Peter Weinberger and Brian Kernighan. grep = "Global Regular Expression Print" grep comes from the ed command to print all lines matching a certain pattern g/re/p where "re" is a "regular expression". fgrep = "Fixed GREP". fgrep searches for fixed strings only.

    tkmkg8m
    tkmkg8m 2018/06/18
    恥ずかしながら知らなかった: “"fgrep foobar *.c" is usually slower than "egrep foobar *.c"” // egrep “has some more sophisticated internal algorithms than grep or fgrep, and is usually the fastest of the three programs. ”
  • grep - Wikipedia

    grep(グレップ、グレプ)は、UNIXおよびUnixオペレーティングシステムにおけるコマンド。テキストファイル中から、正規表現に一致する行を検索して出力する。 概要[編集] grep の名の由来は、ラインエディタedのコマンド g/re/p である。その意味するところは「global regular expression print(ファイル全体から/正規表現に一致する行を/表示する)」で略号になっている[1]。 姉妹コマンドとして、正規表現ではなくリテラル(即値文字列)のみを扱う高速な fgrep[2]、拡張正規表現が使える egrep[3] がある。POSIX では fgrep、egrep を旧形式としていて、それぞれ grep -F、grep -E を使うことを標準としている。Linux Standard Baseでも指定コマンドになっている[4]。 使用法[編集] grep コマ

    tkmkg8m
    tkmkg8m 2018/06/18
    “grep の名の由来は、ラインエディタedのコマンド g/re/p である。その意味するところは「global regular expression print(ファイル全体から/正規表現に一致する行を/表示する)」で略号になっている”