Browsing index pages (2 articles)
↧
Bash Find On A Large Dataset – Write The Results To A File
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...
View ArticleFormat The Date Command In Bash
Formatting the date output in bash is simple: date + "%Y-%m-%d"; An example of assigning to a variable and using: now=`date + "%Y-%m-%d"`; cp /etc/hosts ~/hosts_${now}; For more information, see the...
View Article
Browsing index pages (2 articles)