I am Charmie

メモとログ

unix

日英併記の文章の扱い

状況 日本語・英語を併記した文章を作成 必要に応じて片方の言語の文章だけを抽出したい 解決策 日英フラグを行頭に追加 (日本語・英語の対応関係を取る) sedでどちらかの言語だけを抽出 例 サンプルファイル(sample.txt)は以下の通り en: This is a sample …

unix command: tee

tee command is used to save output of a program shown on a terminal. For example, the following command saves result of ls command as a file text.txt ls | tee test.txt To save error output, add the following option: make 2>&1 | tee make.log