- ファイル内の行を指定してカラムを抜き出す
- awk 'NR==targetRow {print NR, $targetCol;}' targetFile
- 西暦N年M月のカレンダーを表示する
- cal targetMonth targetYear
- ファイルの文字コードをShift_JISからEUC-JPに変換する
- nkf -S -e fromFile > toFile
- 指定カラムをキーにファイル内の行を降順に並び替えて出力する

- sort +fromCol -toCol targetFile
行の区切り文字はタブ、カラム番号は0始まり# 2カラム目をキーにを並び替え
$ sort +1 -2 sample.txt
c 1 test2
a 2 test1
b 3 test3
- プロンプトの作業ログ取得を開始する
- script -a targetFile
- リダイレクト結果を捨ててエラーを標準出力へ渡す
- > /dev/null 2>&1
- ファイル内の指定カラムを抜き出す
- awk '{print $targetCol;}' targetFile
- 現在のディレクトリ内の最新ファイルを閲覧する
- ls -1t * | head -n1 | xargs cat