Pages

Wednesday, October 31, 2012

My Daily Used Commands

Count the Number of Files find . -type f | wc -l Empty a File echo > filename >FileName Tail Last Tailed File !tail Find and Remove Files Matching a pattern find $PWD -type f -name "*Jul-*.ESS-A1.log" -exec rm -f {} \; Find and Zip files matching a Pattern find $PWD –type f –name “ess_admin.controllermessages.log.” | xargs tar zcvf one.tar Differences between 2 files in remote hosts diff <(ssh...
Read More