#!/bin/sh #目标文件夹下面所有问题 target_dir="/app/" #删除2天前新建的后缀为log的文件 -name "*.log" -exec rm -rf {} \; #查找出文件夹下所有的log文件 list=`find $target_dir -name "*.log"` for file in $list do if test -f $file then #清理 cat /dev/null > $file ls -
在Erlang In Anger第二章中讲到使用rebar来创建一个Erlang项目(Application或Project) 但美中不足的只是给出了指引,但没有给出详细的步骤. 下面我们就使用rebar一步步来创建一个典型的Application. 但在此之前,最好先理解下Erlang In Anger中第二章节所讲关于application结构的部分:http://zhongwencool.gitbooks.io/erlang_in_anger/ 通过本小节,你可以了解使用rebar加入
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 进制转换 { class Program { #region 直接删除指定目录下的所有文件及文件夹(保留目录) /// <summary> ///直接删除指定目录下的所有文件及文件夹(保留目录) /// </summary> ///