-
-
Save bglopez/8bbdcd73388d1c98e6ebc3606de48a51 to your computer and use it in GitHub Desktop.
Revisions
-
thydel revised this gist
Jan 23, 2017 . No changes.There are no files selected for viewing
-
thydel created this gist
Nov 24, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ top:; @date log := find /space/log -name '*.log' base := cut -d/ -f4- apache-links := sed -e 's;\(.*\)/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_\2;' php-links := sed -e 's;\(.*\)/php/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_php_\2;' apache := $(log) | grep -v /php/ | $(base) | $(apache-links) php := $(log) | grep /php/ | $(base) | $(php-links) apache php:; $($@)