Ning Ma blog

my technology tips

October, 2012

Linux use find and grep samples

find -mtime -1 find modified files last day grep “php\|js” file name include php or js grep -v “tmp\|cache” file name not include tmp or cash

A good ajx upload library

This plugin uses an XMLHttpRequest (AJAX) for uploading multiple files with a progress-bar in FF3.6+, Safari4+, Chrome and falls back to hidden-iframe-based upload in other browsers (namely IE), providing good user experience everywhere. It does not use Flash, jQuery, or any external libraries. http://valums.com/ajax-upload/

Linux Find a file with grep inside content and xargs

1. find current dir php file with content #FFFFFF

2. find a file current dir with content #FFFFFF

b (block special file), c (character special file), d (directory), p (fifo or named pipe), l (symbolic link), s (socket), or f (plain file).