Add find command example to tsv
This commit is contained in:
parent
e138ab9186
commit
a0abaf6b81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue