find . -name xxxx | xargs -o vim
xargs コマンドに -o
オプションをつけること。これをつけないと標準入力がおかしくなって、以降のターミナルのコマンド入力ができなくなる
package main | |
import ( | |
"flag" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" | |
) |
$ du --total --summarize --human-readable .
1.6M .
1.6M 合計
or
$ du -c -s -h .
$ nkf -Se -Lu --in-place /path/to/file
TERM環境変数をcygwin
にすればちゃんと表示できる
$ TERM=cygwin lv /path/to/file
alias 設定しておいたらいい感じ
alias lv='TERM=cygwin lv'
$ cocot -t UTF-8 -p EUC-JP -- ssh xxx@xxxx
いつも忘れるのでメモ
$ cygstart .
$ ls -ltr | tail -n 3
using System; | |
using CommandLine; | |
namespace CommandLineArg | |
{ | |
class Program | |
{ | |
public class Options | |
{ | |
// shortnameで短いオプション名。(-v)longnameで長いオプション名を指定できる。(--versioninfo) |