Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?

More than 1 year has passed since last update.

@hidao

カレントディレクトリ以下のすべてのファイルを1行ずつフルパスでリストにする

TL;DR

カレントディレクトリを/home/user1/work/としたとき、以下のコマンドを実行する。

find `pwd`

出力結果

/home/user1/work/ahtml
/home/user1/work/b.htmll
/home/user1/work/index.html
/home/user1/work/sitemap.xml
/home/user1/work/profile.html
/home/user1/work/favicon.ico
/home/user1/work/css/style.css
/home/usrr1/work/js/main.js

応用

拡張子に.htmlを持つものだけ抽出する。

find `pwd` | grep \\.html$

出力結果

/home/user1/work/index.html
/home/user1/work/profile.html
1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What is going on with this article?