Sample Header Ad - 728x90

get field from tree with fzf

3 votes
1 answer
167 views
I've tried something like this
tree -C | fzf --ansi | awk -F'|' '{print $NF}'
├── repo.git/
│   ├── folder/
│   │   ├── subfolder/
│   │   │   ├── output.0
│   │   │   └── traces.1
│   │   ├── subfolder/
│   │   │   └── fold/
│   │   │       └── subtree/
│   │   │           ├── .gitignore
│   │   │           ├── stamp-h1 item
│   │   │           └── stamp-h2
I want to grab stamp-h1 item, in other words the filename
Asked by testoflow (137 rep)
Oct 20, 2022, 07:26 PM
Last activity: Jun 20, 2025, 02:39 PM