2010年5月– date –
-
Linux
grepによるファイル内検索How to use linux command grep
基本構文 grep "[検索文字]" [検索ファイル] ■複数文字の検索(OR) "検索文字1" or "検索文字2" がある行を抽出 grep -e "検索文字1" -e "検索文字2" [検索ファイル名] 例: index.php から"HTTP"もしくは"page"がある行を抽出 grep -e "HTTP" -e "pag... -
perl
Perlモジュールがインストールされているかどうかを確認する方法How to confirmation perl module instration
■以下のコマンドを実行すること確認できる # find `perl -e 'print "@INC"'` -name '*.pm' -print ■grep で限定表示 find `perl -e ' print "@INC"' `-name '*.pm' -print | grep LWP ●@INC Perlの特殊変数 ●LWP Perlモジュール -
Linux
スクリプトの実行時間計測How to mesurement program script
timeコマンドを使用して計測する。 time 指定したコマンドの実行時間を表示する コマンドラインの行頭にtimeを付ける 例: ■shの場合 time sh /Users/user/Desktop/test.sh ■phpの場合 time /usr/bin/php -q /Users/user/Desktop/test.php real 0m1.120s... -
windowsサーバー
Windowsコマンドファイル検索
■ファイル検索 コマンドプロンプトを開く。 ファイル名/ディレクトリ名に"hoge"が含まれているものを検索する場合は、 dir /s /b *hoge*
1