#author("2020-07-05T16:45:02+09:00","default:ryuichi","ryuichi")
#author("2021-07-22T12:20:46+09:00","default:ryuichi","ryuichi")
* fdコマンド [#cfa41132]

** 正規表現で検索 [#o874ebfa]

 fd '^index'

** ワイルドカードで検索 [#ue7deadf]

 fd -g 'index*'

- -g を使わなければ正規表現で検索するのがデフォルト

** 拡張子で検索 [#p31eabfd]

 fd --extension txt   # -extension <ext>
 fd -e jpg -e jpeg    # -e: 短縮形、複数の場合は-e -eを重ねる

** 除外して検索 [#j63c9a10]

 fd -E '*test*'

** ファイル/ディレクトリ指定 [#n5c8e072]

 fd --type f  # ファイル
 fd -t d      # ディレクトリ
 

** 階層の深さを指定 [#bd742c28]

 fd -d 1
 fd --max-depth 1

** 参考 [#t22da011]

https://github.com/sharkdp/fd

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS