Add find command example to tsv

This commit is contained in:
James Skemp 2023-08-13 19:47:33 -05:00
parent e138ab9186
commit a0abaf6b81
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ less file.txt
# List all files in a directory, with full paths, into a text file.
find wwwroot -type f > files.txt
# The above with directory, file name, file date, and size, into a tab-separated file.
find . -type f ! -name "._*" ! -name ".DS_Store" -printf "%h\t%f\t%CY-%Cm-%Cd %CT\t%s\n" > files.tsv
# Get full path to a file.
readlink -f relative/path/to/file