2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

俺のコマンド

Last updated at Posted at 2017-04-18

この記事は個人ブログに移行しました。最新情報はブログ版をご覧ください。

要点

  • 指定したディレクトリ直下のファイルから特定の文字列を検索する — ※単に grep 'moji1' /xxx/yyy/ でもよいが、.
  • 指定したディレクトリからn階層下までのファイルから特定の文字列を検索する — nが2の場合、1階層下までが対象となる grep対象 /xxx/yyy/ (直下) /xxx/yyy/\ / (1階層下) 対象外 /xxx/yyy/\ /\ / (2階層下) /xxx/yyy/\ /\ /\ / (3階層下)
  • 複数文字列の場合 — ¥|で繋ぐ。

もっと詳しく

  • ブログではコード全文や補足資料を継続的に更新しています
  • 気になる点があればコメントください🙌
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?