There are a number of ways to compress and uncompress files and folders in a linux terminal but I typically use tar.gz; Continue reading “Compress Uncompress files in Linux”
String replace in multiple files using a recursive file search
Here is a command line method to replace a string in multiple files in the current and sub directories.
Continue reading “String replace in multiple files using a recursive file search”
Get last line of file in PHP
Here is a simple way to get the last line of a file without reading the entire file into memory.
Continue reading “Get last line of file in PHP”