Quantcast
Channel: Tech Notes » bash
Viewing all articles
Browse latest Browse all 2

Bash Find On A Large Dataset – Write The Results To A File

0
0

A fast bash based solution for executing a find on a directory with a lot of files that you want to log to a file:

find /my/data/  -name '*.xml' -type f -fprint my_xml_files.txt

This example looks in the /my/data/ directory for all files with the xml extension and then writes the results to the my_xml_files.txt file.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images