python
xiadingling
天道酬勤
展开
-
python quick start
1、running python#! /usr/bin/python python sc.py2、command line interptereripython3、core language elementsdef myfunc(source): retval = [] for item in source:原创 2016-01-26 11:27:26 · 501 阅读 · 0 评论 -
查找指定目录下的所有日志文件*.log perl
opendir ( SOURCEFILEDIR, $SrcFileDir) or die "Could not open '$SrcFileDir' : $!";my @array; while (my $file = readdir(SOURCEFILEDIR)) { next unless (-f "$SrcFileDir/$file"); #*.log files原创 2016-03-03 17:28:56 · 1447 阅读 · 0 评论 -
删除365天前指定目录下指定类型文件 perl
Perl :sub process { chomp($LogFileDir); if( $LogFileDir ne "" ) { print "obtain log folder $LogFileDir\n"; my @array; my @erroay; # get *.log files @array = g原创 2016-03-04 10:46:34 · 651 阅读 · 0 评论 -
配置网络 redhat
python 环境准备 安装虚拟机 , 配置网络1. 配置静态ip地址方法一: 命令模式vi/etc/sysconfig/network-scripts/ifcfg-eth0编辑好文件后 重启网络service network restart查看是否有配置成功ifconfig方法二: 图形模式, 配置后重启网卡...原创 2019-07-31 21:02:21 · 135 阅读 · 0 评论