I am writing a shell script that takes file paths as input.
For this reason, I need to generate recursive file listings with full paths. For example, the file
Using fd (alternative to find), use the following syntax:
fd
find
fd . foo -a
Where . is the search pattern and foo is the root directory.
.
foo
E.g. to list all files in etc recursively, run: fd . /etc -a.
etc
fd . /etc -a
-a, --absolute-path Show absolute instead of relative paths
-a
--absolute-path