客先常駐マンなので忘れないようにメモ。
which 忘れずに
alias cp='cp -pi'
alias mv='mv -i'
alias rm='rm -i'
alias g='grep'
alias gl='grep -l'
alias p='pwd'
alias h='history'
alias v='view'
alias ..='cd ..'
alias ...='cd ../..'
alias d='cd ~/hoge' ←職場ではこれをよく使うところに
よく使うコマンドはshellに。
alias ga='sh /home/hoge/shell/grep_xargs.sh'
```grep_xargs.sh
#!/bin/bash
grep -l $1 *cpp | xargs grep *ID
```
```grep_xargs.sh
#!/bin/bash
grep -l $1 *cpp | xargs grep *ID
```
0 件のコメント:
コメントを投稿