Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. List Files in Directory

[Golang] Delete Zero Size Files in Directory

May 10, 2018

Delete all files with zero size in a directory in Go. Sub-directories included.

 read more »

[Golang] Find Last Modified File With Specific Name Prefix

April 18, 2018

Get last modified file, name of which starts with specific prefix, in Go.

 read more »

[Golang] Find Files After Given Time

April 07, 2018

Find files after a given timestamp in Go.

 read more »

[Golang] Find Last Modified File Before Specific Time

April 06, 2018

Get last modified file before a specific time in Go.

 read more »

[Golang] Filename Globbing Summary

April 25, 2017

Test how filename globbing works in Go standard library.

 read more »

Golang Template Parse Directory

February 13, 2017

Complement to Go text/template and html/template package - Parse all files in directory (including sub-directories).

 read more »

Golang Template Inheritance (Python Jinja2 extends & include)

February 05, 2017

Template inheritance via Go html/template package. Show how one tempalate extends from another, and also include templates, just as how we do by Python Jinja2.

 read more »

[Bash] Move Directories and Modify Path in Files

January 18, 2017

Replace specific pattern of strings in HTML files under directory via sed.

 read more »

[sed] Replace String in Directory

January 11, 2017

Replace specific pattern of strings in HTML files under directory via sed.

 read more »

[Bash] Find Redundant Files Saved by Chrome

May 23, 2016

Find redundant files saved by Chrome browser via Bash script.

 read more »

[Golang] Find Redundant Files Saved by Chrome

May 22, 2016

Find redundant files saved by Chrome browser via Go.

 read more »

[Bash] find Command Exclude Sub-directory

May 19, 2016

Use find command to find all HTML files in a directory, but exclude the HTML files in some sub-directory.

 read more »

Run wkhtmltopdf With Chinese Font Support on Travis CI

May 18, 2016

Run wkhtmltopdf on Travis CI, which convert HTML files with chinese characters to PDF.

 read more »

[Bash] HTML to PDF via wkhtmltopdf

May 17, 2016

Convert HTML files in directory to PDF recursively via wkhtmltopdf and Bash script.

 read more »

[Bash] Remove Execute Permission of Files in Directory Recursively

May 09, 2016

Remove execute(x) permission of files in directory recursively via chmod command and Bash script.

 read more »

[Bash] Process HTML Files Format in Volumn

April 26, 2016

Convert the format (Big5 encoding to UTF-8, remove DOS newline in file, replace string big5 with UTF-8, and append UNIX newline to end of file) of HTML files in directory via Bash script.

 read more »

[Bash] Rename Files in Directory to Lowercase

April 25, 2016

Convert the name of files in directory to lowercase via Bash script.

 read more »

[Bash] Convert Files in Directory From Big5 to UTF-8

March 18, 2016

Convert all files in a directory recursively (i.e., including subdirectories of the directory) from Big5 encoding to UTF-8 via iconv command.

 read more »

[Golang] Concatenate JavaScript Files

March 06, 2016

Concatenate JavaScript files via Go programming language.

 read more »

[Python] Find Redundant Files Saved by Chrome

March 03, 2016

Find redundant files saved by Chrome browser via Python.

 read more »

[Python] Concatenate JavaScript Files

February 25, 2016

Concatenate JavaScript files via Python script.

 read more »

[Python] Export PIXNET Blog to reStructuredText Files

February 17, 2016

Python scripts to export PIXNET blog posts to files of reStructuredText format.

 read more »

[Golang] Walk All Files in Directory

February 04, 2016 (Updated: May 10, 2018)

List all files in a directory in Go. Similar to Python os.walk.

 read more »

i18n Python Web Application by gettext and Jinja2

January 17, 2016

i18n (Internationalization) Python web applications by GNU gettext tools and Jinja2. Use PO and MO files generated by gettext in Python web application to render HTML of specific languages by Jinja2 template engine.

 read more »

[Python] Internationalization (i18n) of Python Application by GNU gettext Tools

January 14, 2016

Internationalization (i18n) of Python applications by GNU gettext tools. This post shows how to use PO and MO files in Python.

 read more »

[Bash] List All Files in Directory Recursively and Rename

February 02, 2015

List all files in a directory recursively (i.e., including subdirectories of the directory), and use sed to rename the files.

 read more »
Powered by Github Pages, Pelican, pyScss.