Entries from 2012-07-01 to 1 month

mysqlimport: Error: 13, Can't get stat of 'file.txt' (Errcode: 2), when using table:

今回も備忘(たぶん3回目くらい) ファイルからテーブルにMySQLインポートしようとすると、 mysqlimport -h host hoge -u user -p /path/file.txt mysqlimport: Error: 13, Can't get stat of 'file.txt' (Errcode: 2), when using table: というエラー 原因…

行の範囲を指定して表示

今日も備忘。例えば、指定したログファイルの、10000行目から10500行目を見たいとき cat /var/log/access.log | sed -n '10000,10500p' sedコマンドは中々使いこなせない