作業日記@HatenaBlog

各種の作業メモ

正規表現を使ったls

egrepコマンド

ファイル名の先頭が4桁の数字であるファイルのみ表示。

# ls -l | egrep '^[0-9]{4}'

egrepコマンドを使うと良い。